https://supertokens.com/ logo
Title
d

DarkPhoenix

11/10/2022, 7:50 AM
How can I find whether it is a existing user/new user?
r

rp

11/10/2022, 7:50 AM
hey @DarkPhoenix
if the status is
OK
, then the
response
variable should contain a boolean like
createNewUser
`createdNewUser`*
d

DarkPhoenix

11/10/2022, 7:52 AM
Thank you
I also want to fetch user details using access token & store it in my db. Should i write the logic for fetching user details in frontend/backend?
r

rp

11/10/2022, 7:53 AM
backend
just like shown in the code snippet above
d

DarkPhoenix

11/10/2022, 7:54 AM
but I am getting the access token in the frontend right?
r

rp

11/10/2022, 7:55 AM
the google' access token is on the backend
the code snippet above is on the backend init function
d

DarkPhoenix

11/10/2022, 7:57 AM
ooh. Thank you