https://supertokens.com/ logo
f

Fernando

05/15/2022, 6:51 PM
Hi, is it possible with ThirdPartyEmailPassword Recipe, to create a completely custom login, with my google login button.
r

rp

05/15/2022, 6:52 PM
Hey
So you only want to change how the google button looks?
Or the whole UI?
f

Fernando

05/15/2022, 6:56 PM
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

rp

05/15/2022, 6:57 PM
Yea. It’s totally allowed.
Here is a blog that can help you
f

Fernando

05/15/2022, 7:03 PM
fair! that is. sometimes the docuemtnacion becomes a mess 😦
r

rp

05/15/2022, 7:03 PM
Could you elaborate on what you found difficult?
f

Fernando

05/15/2022, 7:04 PM
But the discord support lock, a 10
r

rp

05/15/2022, 7:06 PM
Thanks! We appreciate the feedback!
f

Fernando

05/15/2022, 7:06 PM
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

rp

05/15/2022, 7:07 PM
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
f

Fernando

05/15/2022, 7:08 PM
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

rp

05/15/2022, 7:09 PM
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
f

Fernando

05/15/2022, 7:10 PM
πŸ‘
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

rp

05/16/2022, 10:45 AM
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
f

Fernando

05/16/2022, 10:48 AM
thank you very much
😞
r

rp

05/16/2022, 10:49 AM
??
f

Fernando

05/16/2022, 11:13 AM
Nothing! you always end up passing me a link to the docu and I feel bad.
r

rp

05/16/2022, 11:22 AM
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.
f

Fernando

05/16/2022, 11:27 AM
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))
f

Fernando

05/16/2022, 2:48 PM
exactly this
r

rp

05/16/2022, 2:49 PM
Can I see your config options?
f

Fernando

05/16/2022, 3:03 PM
I've got it up and running!!!
r

rp

05/16/2022, 3:03 PM
Okay! Awesome
3 Views