https://supertokens.com/ logo
get name from google
i

ItayElgazar

05/20/2023, 9:16 AM
Hey, I am trying to get the first & last name when signing up with Google, but I cannot find it in the response. Is there any resource that can help me with this?
r

rp

05/20/2023, 9:17 AM
hey @ItayElgazar you will need to get the access token we provide and then query google using that to get the user's name
i

ItayElgazar

05/20/2023, 9:18 AM
I see, I need to basically use the Google API to fetch that?
r

rp

05/20/2023, 9:18 AM
yes
i

ItayElgazar

05/20/2023, 9:18 AM
Out of curiosity, why is it that way?
And thanks 🙂
r

rp

05/20/2023, 9:18 AM
that's just how we had implemented it initially
we are working on a rework where we give you all the info upfront
i

ItayElgazar

05/20/2023, 9:19 AM
Thanks! 🙂
Do you maybe have a resource of how to use their API? I am goggling but it looks a bit cryptic :D, I am sure many people asked that question and you probably have the link to the specific resource I need
@rp It worked, but now I am trying to also get override the email & password (no social) and for some reason I get
cannot get status of undefined
any idea how to solve it?
r

rp

05/20/2023, 12:17 PM
What’s you code? And also, what’s the error stack trace?