Skip to content
Back

error with oAuth github

  • 0
  • Android
EmoKid
1 Mar, 2025, 19:43

hi, I'm trying to enable authorization via github, but I get an error using android kotlin { "message": "Invalid redirect URL for OAuth success.", "code": 400, "type": "project_invalid_success_url", "version": "1.6.1" }

TypeScript
                                activity = this@MainActivity, 
                                provider = OAuthProvider.GITHUB, 
                                success = "https://cloud.appwrite.io/v1/account/sessions/oauth2/callback/github/67b693810011e520cf60", // Callback URL
                                failure = "https://cloud.appwrite.io/v1/account/sessions/oauth2/callback/github/67b693810011e520cf60"
                            )
TL;DR
Developers are encountering an error with oAuth GitHub due to an invalid redirect URL for OAuth success. The issue is present in the Android Kotlin code snippet provided. The solution is to ensure the correct redirect URL is used for OAuth success.
EmoKid
1 Mar, 2025, 19:52

please help

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more