after OAuth the browser popup doesnt close but the user is logged in, what could be the issue?
login session is created using:
await account.createOAuth2Session(provider: OAuthProvider.google);
AndroidManifest is configured properly:
<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:
val projectId: String = System.getenv("APPWRITE_PROJECT_ID")
manifestPlaceholders += mapOf( "PROJECT_ID" to projectId )
Hey <@452316113016193024> I'm sorry for the tag but I really need some help with this, I'm waiting on this to push an update to my app so users can login with OAuth, which is currently broken.
Seems to be a transitive issue from flutter_web_auth_2, fixed by using
dependency_overrides:
flutter_web_auth_2: ^5.0.0-alpha.3
<@1087889306208718959> <@462046107556511744> You guys might wanna take a look at this
Well. Do if you prefer or want! π
flutter_web_auth_2 is changing the method of authenticating on Android completely in v5
There are no breaking changes though
Sure, could you please point me to the repo? The flutter sdk repo seems to be read only
Since the version I used is still in alpha and v5 as a whole is still in Alpha, maybe it would be better to wait for a GA release? Upto you guys how you wanna handle this, but maybe another potential solution can be adding to the documentation temporarily to use a dependency override if someone faces an issue.
The reason I propose this alternate approach is, if someone has an issue with the alpha then they will be confused.
Although that is unlikely
Thank You
https://github.com/appwrite/sdk-generator/pull/1254
Here you go. Thanks for the oppurtunity!
Looks good to me
Recommended threads
- relationships bug or error idk
hey every one, am using am using appwrite on a project and ran into a problem where by created a relationship and two way to be specific and it is stuck on proc...
- Scheduled functions (CRON) not firing β ...
Hi team β same symptom as a recent thread here where switching from a round cron expression to an offset-minute one fixed it. Project ID: 69fa56560037c7843a85 ...
- Functions in cloud console not works
please advise as all of my runing functions on Appwrite console was working before , but now it give this error [Invalid `headers` param: Value must be a valid...