The question I've always been afraid to ask: Is th...
# support-questions-legacy
i
The question I've always been afraid to ask: Is there a way to do the Social Provider stuff for people who don't have JS working in their browsers? I was under the assumption that the Social Provider logins redirect you to the provider, have you login, and then redirect you back to the app with the authentication information in the URL or something. Is that correct? And if that is correct, would the backend be able to just read the data from the URL and pass it to a
supertokens-node
method to do the login? Like
ThirdPartyEmailPassword.thirdPartySignInUp()
? And thus allow someone without JS to signin/signup?
r
hey @ITEnthusiasm the
thirdPartySignInUp
function needs to be called from the frontend to backend since this API call also creates a session for the user.
so this would require JS on the browser to be enabled
However, if you want it to work without JS, you can setup the redirection to point to your backend API and then make that call the signin up endpoint (within the backend itself), and then have the session set as cookies.
i
I thought
thirdPartySignInUp
got called from the backend, no? https://supertokens.com/docs/nodejs/modules/recipe_thirdpartyemailpassword.html#thirdPartySignInUp-1 Or is that a method that only works with a corresponding frontend function?
r
Right. So that can be called from the backend, but you will have to do the auth code exchange yourself before (in order to get the user’s id and email)
If you don’t want to do that yourself, then you will need to call the signinup API from the frontend which is what I was referring to
i
Ah, mkay. I'll look into this (and potentially ask more questions later 😅). Thank you 🙏🏿
2 Views