Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
What
This fixes several issues with the OAuth connectors atm:
connectorFormContextdoes no longer containselectedServiceandselectedConnector, but the consuming places were not adjusted to that yet. This fixes the consuming places and the types.getValuessince the refactor to theuseAuthenticationhook, which would cause connectors (like Bing Ads), which had apredicateKeyreferencing a field that only had aconstvalue to no longer show. Since thegetValuesmethod is the one that put thatconstvalue as a default value into the Formik values.defaultvalue for one of the OAuth flow fields of empty string, which caused our check forundefinedthough to now think the OAuth flow already ran. This was now changed to a truthy change, so empty string default values in OAuth flow fields no longer mark the button as "Reauthenticate" from the beginning.