Repository navigation
docs(flutter): explain that native OAuth2 must use the default redirect - #13976
Conversation
On Android, iOS and macOS the Flutter SDK only listens for the appwrite-callback-[PROJECT_ID] scheme, and the server only adds the session key and secret to the default success redirect. A custom success URL such as an https App Link therefore ends the login with PlatformException(CANCELED) or an invalid OAuth2 response even though the session was created. Tell readers to omit success and failure and navigate after the Future completes.
🟢 Tier S · Ready to merge
Adds Flutter getting-started guidance for native OAuth2 redirects. The note explains why custom success URLs can leave the SDK waiting for its callback and advises navigating from Dart after the authentication Future completes. The latest commit moves the note above the platform-specific setup so it applies clearly to Android, iOS, and macOS. Latest changes: Moved the existing native OAuth2 redirect note from beneath the Android manifest example to the start of the Flutter platform setup section.
📂 Walkthrough · 1
Reviewed the commits since |
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
It applies to Android, iOS and macOS, so it belongs where readers of all three see it.
…to docs/flutter-oauth-redirects
On Android, iOS and macOS the Flutter SDK only listens for the
appwrite-callback-[PROJECT_ID]scheme. The server also only adds the session key and secret to the default success redirect. So passing a custom success URL like an https App Link tocreateOAuth2Sessionfails withPlatformException(CANCELED)or an invalid OAuth2 response, even though the login went through. This adds a short note after the Android manifest setup in the Flutter getting started guide, which is where the SDK README comes from. It tells readers to leave outsuccessandfailureand to navigate from Dart once the Future completes.Fixes #3142