Hey 👋
I'm trying to authenticate via Google using the ThirdParty recipe. We're using NextJS only for the frontend, NestJS for the API, and self-hosted SuperTokens core.
The
authorisationUrlGET
request runs successfully but the
signInUpPOST
request receives a 500 in the frontend, and a 401 in the backend. The backend error message is just "Request failed with status code 401".
We've successfully used the passwordless recipe with this setup so unsure why Google OAuth is not working.
Any ideas?
r
rp_st
09/21/2023, 12:00 PM
hey @cheerful_lemur_45830 are you using your own google oauth credentials?
c
cheerful_lemur_45830
09/21/2023, 12:01 PM
yes we are. I've triple checked the authorised origins and redirect urls so they should be correct too
cheerful_lemur_45830
09/21/2023, 12:43 PM
omg ignore me, it seems we'd set the client id for both cilent id and secret during initialisation 🤦♂️
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).