Skip to content
Back

Auth - Google one tap not working

  • 0
  • Web
elnur
26 Oct, 2023, 19:38

Title, perhaps the SDK can't handle the credential given by google one tap?

TL;DR
Issue: Google one tap feature is not working with the app. Solution: 1. Ensure that the code is correctly implemented and the necessary configurations are set in the Google Cloud Platform (GCP) Identity Console. 2. Check if the success URL is supplied correctly. 3. Deploy the application on an HTTPS protocol instead of HTTP. 4. Try removing the useEffect code that includes the Google code, as it might not be necessary. 5. Consider if the SDK being used can handle the credential provided by Google one tap.
Drake
26 Oct, 2023, 19:46

did you supply a success URL?

elnur
26 Oct, 2023, 19:48

Yes! I will supply the code:

elnur
26 Oct, 2023, 19:48

I have also made sure to have the correct URIs in the GCP identity console.

elnur
26 Oct, 2023, 19:50
elnur
26 Oct, 2023, 20:00
elnur
26 Oct, 2023, 20:01

Hang on... I'll try something.

elnur
26 Oct, 2023, 20:02

No that didnt work. I tried adding another web app as localhost

elnur
26 Oct, 2023, 20:06

Perhaps it's because it doesnt work on http protocol... ill try and deploy it on https.

Drake
26 Oct, 2023, 20:08

i don't really understand why you're doing that useEffect with the google code 🧐

elnur
26 Oct, 2023, 20:10

It didnt work with HTTPS either. It's a google script that gets added once, then removed. It doesn't run more than once.

Drake
26 Oct, 2023, 20:10
elnur
26 Oct, 2023, 20:11

You're right...

elnur
26 Oct, 2023, 20:11

How can I pass the credential to create the session?

Drake
26 Oct, 2023, 20:12

appwrite handles the full oauth flow. you don't need to do all that accounts.google.com/gsi/client stuf

elnur
26 Oct, 2023, 20:12

Yes but with google one tap?

Drake
26 Oct, 2023, 20:12

i don't know what that is...it probably doesn't work with appwrite

elnur
26 Oct, 2023, 20:12
elnur
26 Oct, 2023, 20:13

It's a handy feature, the only thing missing I suspect is the ability to create a session with the token.

Drake
26 Oct, 2023, 20:14

oh....as a user i hate these pop-ups 🀣

elnur
26 Oct, 2023, 20:14

I might just about ditch it then haha

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