Skip to content

feat(ios): same behavior as Android for code. #284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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