Google oauth returns Unauthorized Error during sign-in

Hello All,

I have implemented google oauth for sign-up. During sign up i store the user email id & hash the sub/google id using argon2i & save as password.

When i am trying to login/sign in, i am getting ‘Unauthorized’ error. Below are the API steps i have followed:

I have tried binding the hashed password in the Security login as well as the ‘sub’ returned by the API, still getting Unauthorized error.

The redirect step looks strange to me, outside the condition will always run, what if you disable it?

Also, maybe this can help?

1 Like

Thanks @franse for sharing these tutorials. I followed the tutorials & found the mistake i was making while implementing google oauth.

I was double hashing the password, due to which it was not been verified. I fixed that & now it is working fine.

1 Like