Unable to access user details after Sign in with Google

Hey guys :wave: .

I have configured sign in with Google using Xano, and from what I understand it seems to be working. The user can successfully sign in, but unfortunately I cannot access the user’s details returned after they sign in.

I have also recorded a more descriptive loom video that clearly and visually outlines the problem I am encountering .

Any assistance will be greatly appreciated.

Titus.

Hi @sirtitusveTech :wave:

Unfortunately, I’m not able to play the video you shared. Not sure why.

But based on the screenshot you shared, it looks like your user was NOT authenticated properly because the isAuthenticated variable is false. It would be true if the user had managed to login.

Can you try sharing the video again showing us what the entire authentication flow looks like so we can see where it’s breaking down?

My intuition is that after Google, you are redirecting to a private page instead of a public page:

In the diagram above, everything in black is what happens on your app, everything in blue is what happens on the third-party’s domain.

With OAuth, when you first get back to your own domain, you need to seize the cookie and set up the user from the third party on a public page before redirecting them to a private page.

Does that help?

Hey @Joyce :wave: ,

Not sure why the video won’t play, let me resend the linnk to the loom : Here

I am infact redirecting to a public page, but I don’t think i am doing anything to seize the cookie and set up the user . kindly assist.