Hey just realize That the data saved in db only pr...
# support-questions
a
Hey just realize That the data saved in db only providerId and email. So to get another such as user name from third party, do I need to request it using the access token?
r
Hey! Yes you do need to request it yourself.
a
Then in this example https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/getting-provider-access-token it use google as example. Are the other provider use the same method?
r
Yes. Same method
The authCodeResponse’s structure can be different based on the provider though. So be sure to check that
a
ahhhh
that's make sense
Regarding this tried using google and facebook even though both have pretty much different structure, it is a little weird to check the AuthCodeResponse property structure to know the provider. Suggestion to add loginProvider prop that indicating the login method especially for third party.
r
You can use
input.provider.id
to know what's the provider
for example, the value of that will be
"google"
if it's sign in with google, or else if it's fb, it will be
"facebook"
and so on.
a
owh....
r
hehe
perhaps should be in the example in the docs.