Title, perhaps the SDK can't handle the credential given by google one tap?
did you supply a success URL?
Yes! I will supply the code:
I have also made sure to have the correct URIs in the GCP identity console.
Hang on... I'll try something.
No that didnt work. I tried adding another web app as localhost
Perhaps it's because it doesnt work on http protocol... ill try and deploy it on https.
i don't really understand why you're doing that useEffect with the google code 🧐
It didnt work with HTTPS either. It's a google script that gets added once, then removed. It doesn't run more than once.
you're trying to pass an idToken for the success url: https://github.com/appwrite/sdk-for-web/blob/ca4ef6dd0f8d7110db57f8b3b295ce62e629eec5/src/services/account.ts#L702
You're right...
How can I pass the credential to create the session?
appwrite handles the full oauth flow. you don't need to do all that accounts.google.com/gsi/client stuf
Yes but with google one tap?
i don't know what that is...it probably doesn't work with appwrite
It's a handy feature, the only thing missing I suspect is the ability to create a session with the token.
oh....as a user i hate these pop-ups 🤣
I might just about ditch it then haha
Recommended threads
- Google login on mobile not working
Hi the gg login auth in mobile not working. No error show. But the user couldnt login in Attached is the video. Desktop is working well and im using custom doma...
- Appwrite 1.8.1 TablesDB Permissions Issu...
Hi - I'm migrating a newer VueJS web application from Supabase to Appwrite. I'm looking for an experienced Appwrite Developer to help me solve a permissions iss...
- Failed to create function
Hey everyone 👋 I'm having an issue creating Functions on Appwrite Cloud and I'm not sure if it's a platform bug or something wrong in my project. When I try t...