Hi, is it possible with ThirdPartyEmailPassword Re...
# support-questions-legacy
m
Hi, is it possible with ThirdPartyEmailPassword Recipe, to create a completely custom login, with my google login button.
r
Hey
So you only want to change how the google button looks?
Or the whole UI?
m
All the login interface, currently I have the login with mail and password completely customised (POST request to the back) (I don't know if this is allowed by the usage policy). Now I wanted to integrate google login in the same way.
r
Yea. It’s totally allowed.
Here is a blog that can help you
m
fair! that is. sometimes the docuemtnacion becomes a mess 😦
r
Could you elaborate on what you found difficult?
m
But the discord support lock, a 10
r
Thanks! We appreciate the feedback!
m
The issue of recipes is a good place to start. But then it is not practical, in many occasions, you start with one but maybe later with another. and having so much information, much of it duplicated, in some points it is updated and in others it is not. also the system varies a lot from using one recipe or another. It could be more extensible from one base. I don't know if I'm explaining myself well. Translated with www.DeepL.com/Translator (free version)
r
I do understand!
The idea behind recipe was that you choose the one you want, and you only see docs pertaining to that.
Instead of seeing multiple
m
Yes, I agree with that, but I don't think it varies that much from one to another, they are just small modifications.
Anyway, it's not bad documentation.
r
Sometimes yea, sometimes no. Some recipes are very different (for example passwordless vs thirdparty)
But I agree. We have a lot of improvements to make!
Thank you for the feedback!
And feel free to ask more questions here
m
πŸ‘
Hi, I am doing the override of (override_thirdpartyemailpassword_functions) of the function sign_in_up. For google login. I am not seeing it return data like (name, lastname, photo). It is not possible to access it. Thanks
r
We give you the access token returned by google and you can use that to query google to get any info you like: https://supertokens.com/docs/thirdpartyemailpassword/post-login/getting-provider-access-token
m
thank you very much
😞
r
??
m
Nothing! you always end up passing me a link to the docu and I feel bad.
r
i see.. well it's easier for me to link to the docs that has stuff explained already as opposed to me typing the same content here.
m
Yes, of course!
I cannot access the profile information, I cannot modify the scope (https://www.googleapis.com/auth/userinfo.email). Neither with the supertokens example client_id nor with one of my own.
I only have access to the id, mail, picture, but not to the name, gender, locale.
access_token = thirdparty_auth_response["access_token"] resp = requests.get('https://www.googleapis.com/oauth2/v2/userinfo?access_token={}&alt=json'.format(access_token))
m
exactly this
r
Can I see your config options?
m
I've got it up and running!!!
r
Okay! Awesome
3 Views