Open ap0894 opened 3 weeks ago
Same exact issue here with Spotify OAuth. Similar behaviour to the above. It goes through the Spotify login fine, asking for user permissions and redirects to my iOS app but I get the error: I/Capacitor/GenericOAuth2Plugin: Authorization failed with The operation couldn’t be completed. (OAuthSwiftError error -1.) ERROR MESSAGE: {"message":"ERR_NO_AUTHORIZATION_CODE","errorMessage":"ERR_NO_AUTHORIZATION_CODE"} ⚡️ [error] - {"message":"ERR_NO_AUTHORIZATION_CODE","errorMessage":"ERR_NO_AUTHORIZATION_CODE"} ⚡️ [error] - {"errorMessage":"ERR_NO_AUTHORIZATION_CODE"}
Description
On platform iOS after user sucessfully completes login on OAUTH provider page user is redirected back to the app where the following is logged in XCode indicating that code parameter is correctly set in callback but plugin is erroring with ERR_NO_AUTHORIZATION_CODE
Capacitor version:
Run
npx cap doctor
:Library version:
@capacitor-community/generic-oauth2@6.1.0
OAuth Provider:
Assignr. Documentation: https://assignr-api.readme.io/reference/authentication
Your Plugin Configuration
Affected Platform(s):
iOS
Info.plist