Skip to content

Conversation

bertrand-sifre
Copy link

This PR fixes an issue where the plugin returns the error ERR_NO_AUTHORIZATION_CODE on iOS, even when the authorization code is correctly present in the redirect URL.

Issues #199 and #279 already pointed out that the authorization code was not properly extracted or recognized in some cases.

I’m not an iOS or CapacitorJS expert — I’m just a MacGyver. 🚀

@alexeevit
Copy link

Just tested, the changes do the job.

@moberwasserlechner hey, is there a way to proceed with the PR?

@bertrand-sifre
Copy link
Author

bertrand-sifre commented Apr 16, 2025

Thanks for your feedback! Feel free to use my personal build in your project by adding this dependency:
"@capacitor-community/generic-oauth2": "github:bertrand-sifre/capacitor-oauth2#dist"

It's been a while since this repository was last updated. @tafelnl , maybe you could help us out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants