https://supertokens.com/ logo
signinup error
k

kazumo

04/14/2023, 2:17 AM
hi i have a question. The front end is developed with next.js and the back end with nest.js. When i login with your Google account, When i send a request to http://localhost:3001/api/auth/signinup,
data: { error: 'invalid_grant', error_description: 'Bad Request' }
is returned from GoogleAPi. But the login itself succeeds. What is the cause here?
r

rp

04/14/2023, 5:08 AM
hey @kazumo Are you using a custom UI or our pre built UI? Can i see the network tab in inspect element screenshot?
k

kazumo

04/14/2023, 7:09 AM
i using custom UI sure, this is screenshot

https://cdn.discordapp.com/attachments/1096257898629300285/1096331373675040828/screen-shot.png

r

rp

04/14/2023, 7:57 AM
right, so you are calling the signinup function from a usEffect right? In dev mode, react fires useEffect two times. So that's why this is happening. It won't happen in prod, so you can ignore it