Also is it possible to tweak the settings of the E...
# support-questions-legacy
t
Also is it possible to tweak the settings of the EmailPassword thingy ? like to change hashing algorithm and to directly supply a hash to the
ThirdPartyEmailPassword.emailPasswordSignIn()
?
r
hey @TeK it is possible to directly supply the hash. See our migration docs: https://supertokens.com/docs/thirdpartyemailpassword/migration/account-creation/user-creation You essentially want to call the API for migration like this:
Copy code
curl --location --request POST 'http://localhost:3567/recipe/user/passwordhash/import' \
--header 'api-key: <API_KEY(if configured)>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "johndoe@example.com",
    "passwordHash": "$argon2d$v=19$m=12,t=3,p=1$NWd0eGp4ZW91b3IwMDAwMA$57jcfXF19MyiUXSjkVBpEQ"
}'
t
Ah there's no methods for it in the backend ?
r
not for this operation.
t
Uhm, i guess i'll send the password in clear then to my API, and how can i get the google auth url from the backend is it possible ?
r
> how can i get the google auth url from the backend is it possible ? Im not sure what you mean here.
t
I'm doing something like that basically. So i call this route from my Unity client to either login with email/password or get a google auth url and then after that it'll redirect to another endpoint for completing google login
I'm not sure if its the proper way, but my end-goal is to be able to login with email & socials from Unity and get the session token. So then i can make requests to my api without relogging in as the client sends the token
Not sure if its the recommended way but, i feel like its a good starting point
r
you can see the API exposed by the backend SDK here and query them directly if you want: https://supertokens.io/docs/fdi
t
May i ask from where are those api endpoints in the sourcecode ?
auth/authorisationurl?thirdPartyId=google
do exactly what i want so i'd like to see how is it built
t
Thanks a lot, just as a last question, i'm sorry to annoy you. Is there a way to get the client session token after using the
ThirdPartyEmailPassword.emailPasswordSignIn
method ? this way i can return it to clients so they can use it next time for other requests ?
r
Can you ask this on a other thread? It’s not related to this thread’s topic
2 Views