Hey 👋 I'm trying to authenticate via Google using the ThirdParty recipe. We're using NextJS only ...
c
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
hey @cheerful_lemur_45830 are you using your own google oauth credentials?
c
yes we are. I've triple checked the authorised origins and redirect urls so they should be correct too
omg ignore me, it seems we'd set the client id for both cilent id and secret during initialisation 🤦‍♂️