Skip to content

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

Open
bertrand-sifre wants to merge 2 commits into
capacitor-community:mainfrom
bertrand-sifre:main
Open

feat(ios): same behavior as Android for code.#284
bertrand-sifre wants to merge 2 commits into
capacitor-community:mainfrom
bertrand-sifre:main

Conversation

@bertrand-sifre

Copy link
Copy Markdown

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
Copy Markdown

Just tested, the changes do the job.

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

@bertrand-sifre

bertrand-sifre commented Apr 16, 2025

Copy link
Copy Markdown
Author

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?

@venn24

This comment was marked as off-topic.

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.

3 participants