This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Starts an OAuth connection between a resource and your provider.
Wix calls this method when a user chooses to connect their provider account by OAuth. Wix calls it only if your configuration lists OAUTH in connectionMethods.
Wix uses the returned oauthUrl to redirect the user to your provider's authorization screen.
Your implementation should:*
id), and redirect the user back to redirectUrl with ?connectionId=<id> on success, or ?error=<code> on failure. Defined failure codes: reject (the user denied access), missing_permissions (the user didn't grant all required scopes), and internal (token exchange, user-info fetch, or other unexpected error).Error handling:* If your implementation returns an error, Wix surfaces it to the caller.