https://supertokens.com/
Join Discord
Hi, i am getting `Session does not exist` then reloading frontend A after i logged in with the same ...
l

Luca

over 2 years ago
Hi, i am getting
Session does not exist
then reloading frontend A after i logged in with the same account in frontend B. Is there a way how i can fix this? I am using the python sdk (fastapi) and for my frontent A the react sdk and for frontend B the web sdk.
l
r
  • 2
  • 14
  • 8
Hey, i am getting a blank screen after signup then the email verification is set to required. I dont...
l

Luca

over 2 years ago
Hey, i am getting a blank screen after signup then the email verification is set to required. I dont get any kind of error messages. No erros in borwser console, lo failing network requests, no backend errors. I am using the latest versions of supertokens_python and supertokens react. I am using the thirdpartyemailpassword recipe. What can i do to fix this?
l
r
  • 2
  • 6
  • 8
Hi, this is the most <#603466164219281433> channel I can see. I just wanted to say I'm giving supert...
c

codingkriggs

over 2 years ago
Hi, this is the most #603466164219281433 channel I can see. I just wanted to say I'm giving supertokens a look. My stack is nextjs 13 / react 18. I believe there are no real examples of supertokens using the new nextjs 13 app/ directory (vs. pages/), but plenty of libraries require the migration, not just supertokens. Hopefully that part won't be as difficult as what I expect to be the difficult part, which is configuring supertokens and understanding what I'm doing. I will say though that I chose supertokens after looking for days at all the alternatives. Because 1) you're very explicit about your algorithm (access and refresh tokens), 2) you support username/password, and 3) you have a free open source self-host option.
c
n
  • 2
  • 1
  • 8
Hi ! Is there any known procedure to upgrade the core when using Docker ? I installed 5.0 this morn...
c

Chimanos

over 2 years ago
Hi ! Is there any known procedure to upgrade the core when using Docker ? I installed 5.0 this morning (by changing my compose file with
5.0
); and am getting :
Unknown column 'use_static_key' in 'field list'
c
r
  • 2
  • 12
  • 8
Hey 🙂 Trying to implement email verification (optional, default email service); I installed the re...
c

Chimanos

over 2 years ago
Hey 🙂 Trying to implement email verification (optional, default email service); I installed the recipe like so in recipesList :
ts
          EmailVerification.init({
            mode: 'OPTIONAL',
            override: {
              apis: (originalImplementation) => {
                return {
                  ...originalImplementation,
                  generateEmailVerifyTokenPOST: (input) => {
                    console.log(input)
                    return originalImplementation.generateEmailVerifyTokenPOST!(
                      input,
                    )
                  },
                  isEmailVerifiedGET: (input) => {
                    console.log(input)
                    return originalImplementation.isEmailVerifiedGET!(input)
                  },
                  verifyEmailPOST: (input) => {
                    console.log(input)
                    return originalImplementation.verifyEmailPOST!(input)
                  },
                }
              },
            },
          }),
(just logs to watch the behavior) Uppon signup, I'm not receiving any emails; and not seeing any logs. Am I missing something ? NB: worth mentionning I'm using a "hook" in signup to insert a record in my own Database. It calls the originalImplementation too NB2: worth mentionning I'm not using any frontend for now, and just calling my signup "proxy" from Postman
c
r
  • 2
  • 11
  • 8
Hi, there! How to integrate SuperTokens into react native project. I have successfully integrated it...
o

olehhlova

over 2 years ago
Hi, there! How to integrate SuperTokens into react native project. I have successfully integrated it in react-app, but in react-native its quite different
o
r
  • 2
  • 7
  • 8
I'm trying to add a admin role to any user when they sign up but for some reason it is not assigning...
s

Sekai

over 2 years ago
I'm trying to add a admin role to any user when they sign up but for some reason it is not assigning the role. This is the code in the frontend config, where it creates the role and then adds the role
export const frontendConfig = () => {
    return {
        appInfo,
        recipeList: [
            EmailPasswordReact.init({
                onHandleEvent: async (context) => {
                    if (context.action === "SESSION_ALREADY_EXISTS") {
                        // TODO:
                        console.log("Session already exists")
                    } else {
                        if (context.action === "SUCCESS") {
                            if (context.isNewUser) {
                                // TODO: Sign up
                                console.log("User signed up")
                                createRole()
                                addRoleToUser(context.user.id)
                            } else {
                                console.log("User signed in")
                                // TODO: Sign in
                            }
                        }
                    }
                }
            }),
            SessionReact.init(),
        ],
EDIT: now I am getting an error of Initialization not done. Did you forget to call the UserRoles.init or SuperTokens.init functions. and I did in the backend config. when I put it in frontend config it breaks the code so I don't have it.
s
r
w
  • 3
  • 34
  • 8
I have an app in which users are invited by an admin, using an email, now I'm wondering, - Do I crea...
m

miguelstevensbe

over 2 years ago
I have an app in which users are invited by an admin, using an email, now I'm wondering, - Do I create the Supertokens user first, and then invite the user to register for an account in my app - Do I create an account in my app's database, and then have the user signup using a special link to fill in his details for Supertokens? What's the general way of going about something like this? The user account will have to be coupled to a company, for example
m
r
  • 2
  • 21
  • 8
Im looking at useing the JWT service as a means to generate short lived JWT tokens to be used betwee...
p

pitchash

over 2 years ago
Im looking at useing the JWT service as a means to generate short lived JWT tokens to be used between services. The documentation seems to suggest that every call to Jwt.createJWT involes an http request to the supertokens core is that right?
p
r
  • 2
  • 46
  • 8
Issuer URL
r

rp_st

over 2 years ago
What is the issuer URL provided by SuperTokens?
r
  • 1
  • 2
  • 8
Previous959697Next

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