https://supertokens.com/
Join Discord
I'm having some trouble routing the user from the signup form to the `passwordless` phone number inp...
b

Bailey

about 3 years ago
I'm having some trouble routing the user from the signup form to the
passwordless
phone number input after sign up. I'm overriding emailpassword's
signUpPOST
function by calling: -
signUp
(/recipe/emailpassword) -
createNewSession
(/recipe/session)
signUpPOST: async function (input) {
    let signup = await signUp(
        email,
        password,
        input.userContext
    );

    if (signup.status === 'OK') {
        // Create database user
        ...

        // Create session
        return createNewSession(
            input.options.res,
            signup.user.id,
            undefined,
            undefined,
            input.userContext
        );
    }
}
I'm unsure if the
input
variables I'm passing here are correct, or if there is another recipe function I should be calling. The session and user seem to be created properly, but the frontend requires a manual refresh in order to reach the
passwordless
Second factor auth (phone number input page). Without a manual refresh, the frontend says to sign in instead since the email is already in use.
b
r
  • 2
  • 14
  • 22
How exactly does the doesSessionExist work?
a

abhisheksinghkapoor

about 3 years ago
How exactly does the doesSessionExist work?
a
r
  • 2
  • 49
  • 22
Docs question: I'm using Phoenix framework on Elixir which doesn't have library integration built. I...
l

lamp-town-guy

about 3 years ago
Docs question: I'm using Phoenix framework on Elixir which doesn't have library integration built. Is there a place for docs how to start from zero? I don't promise anything but Appwrite has SDK generator and I've built Elixir generator part for them while trying it. It's not in the MR yet though.
l
n
r
  • 3
  • 10
  • 22
Thanks so much, it is working now but, is there any way to handle it directly from Backend? I mean, ...
r

rezaamya

about 3 years ago
Thanks so much, it is working now but, is there any way to handle it directly from Backend? I mean, if I detect that the session is expired on Backend, is there anyway to refresh it directly from there, instead of responding with "try refresh token" message to Frontend and getting request on auth/session/refresh? I know it is conceptually different from what SuperTokens is for, but I am trying to handle something else with described scenario.
r
r
  • 2
  • 12
  • 22
Hi, is there a way to know how the user signed up (emailpassword or thirdparty)
f

flixoflax

over 3 years ago
Hi, is there a way to know how the user signed up (emailpassword or thirdparty)
f
r
  • 2
  • 14
  • 22
hi! how can i prevent `SignInUp` component from `supertokens-auth-react/recipe/passwordless` redir...
y

yzs

over 3 years ago
hi! how can i prevent
SignInUp
component from
supertokens-auth-react/recipe/passwordless
redirecting to
/auth
i am overriding it to only confirm
OTP
by creating
verify-phone
route, and adding this to frontend config
signInUpFeature: { disableDefaultUI: true }
y
r
  • 2
  • 57
  • 22
Hey I have a issue with my capacitor ios app again. Here is the debug log from the phone. It logs in...
c

codingtomato

over 3 years ago
Hey I have a issue with my capacitor ios app again. Here is the debug log from the phone. It logs in normally and cannot hold session somehow. Any ideas?
log
c
r
  • 2
  • 70
  • 22
This may be a bit of a basic question, but in some cases the supertokens instance is not found even ...
c

CaptainPhoton

over 3 years ago
This may be a bit of a basic question, but in some cases the supertokens instance is not found even though I initialize Supertokens as the first thing in the app. Now I am trying to get the user count in a request handler, and it is saying that Supertokens is not initialized :/
await supertokens.getUserCount()
c
r
  • 2
  • 37
  • 22
Hello This seems like an awesome project. I currently have my users in my mongoDB and logins in goog...
u

.bloch

over 3 years ago
Hello This seems like an awesome project. I currently have my users in my mongoDB and logins in google identity management. In the future it would be cool to have everything in mongodb (when the adapter is implemented). My backend is built with c# in asp core. I dont see any mentions of dot net / asp core / c# in the guides or in this discord. Will it be supported or am i the only one who have requested it ?
u
r
c
  • 3
  • 12
  • 22
My session keeps expiring I tried adding the frontend SDK to all of my pages but it doesn't seem to ...
λ

Λ C Ξ L X R D

over 3 years ago
My session keeps expiring I tried adding the frontend SDK to all of my pages but it doesn't seem to work
λ
r
  • 2
  • 56
  • 22
Previous596061Next

SuperTokens.com

SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).

Powered by