after OAuth the browser popup doesnt close but the user is logged in, what could be the issue?
TL;DR
OAuth login session is created using Dart code. AndroidManifest is properly configured to handle the login callback. The issue causing the browser popup to not close after OAuth login is likely related to the handling of the callback activity. Double-check the callback handling logic or implement a method to close the popup after successful login.login session is created using:
TypeScript
await account.createOAuth2Session(provider: OAuthProvider.google);
AndroidManifest is configured properly:
TypeScript
<activity android:exported="true" android:name="com.linusu.flutter_web_auth_2.CallbackActivity">
<intent-filter android:label="flutter_web_auth_2">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="appwrite-callback-${PROJECT_ID}" />
</intent-filter>
</activity>
Project ID is in this form as it gets injected during a CI/CD Workflow, and it is added to manifestPlaceholders by the Gradle Build:
TypeScript
val projectId: String = System.getenv("APPWRITE_PROJECT_ID")
manifestPlaceholders += mapOf( "PROJECT_ID" to projectId )
Recommended threads
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...
- Can't resume paused project
I have logged in in incognito, done the email verification and still get the invalid fingerprint error. What's the issue.
- Download appwrite Docs
Is there is a way to download appwrite Docs ? Because appwrite skill isn't enough to give the agent full understanding about how appwrite works (I noticed this ...