https://supertokens.com/ logo
Docs
Join the conversationJoin Discord
Channels
community
contributing
general
github-activity
info
introductions
new-releases
random
security
support-questions
welcome-0xdelusion
welcome-aj-ya
welcome-aleksandrc
welcome-alpinjs
welcome-amberlamps1
welcome-andrew-rodriguez
welcome-ankit-choudhary
welcome-anthony-stod-custodio
welcome-call-in
welcome-chwalbox
welcome-claybiokiller
welcome-co7e
welcome-cosmoecwsa
welcome-devdag
welcome-dinso
welcome-drebotelho
welcome-elio
welcome-ernest
welcome-foxbarrington
welcome-fromscratch
welcome-galto4ir
welcome-goetzum
welcome-hay-kot
welcome-himanshu-kukreja
welcome-hossambarakat
welcome-ichikawakazuto
welcome-jahir9991
welcome-jamesl
welcome-jerry123424
welcome-john-oliver
welcome-jonas-alexanderson
welcome-jxyz
welcome-kelvinwop
welcome-kraz
welcome-lancekey
welcome-leoo
welcome-lukeacollins
welcome-m-j-mon
welcome-malik-khoja
welcome-marco
welcome-mardadi
welcome-meshguy
welcome-metamorph
welcome-mike-tectu
welcome-mirzok
welcome-mozomig
welcome-naberyou66_
welcome-nacer
welcome-namratha
welcome-naveenkumar
welcome-nightlight
welcome-nischith
welcome-notankit
welcome-olawumi
welcome-pavan-kumar-reddy-n
welcome-pineappaul
welcome-poothebear
welcome-rick
welcome-samuel-qosenergy
welcome-samuelstroschein
welcome-shubhamgoel23
welcome-shubhamkaushal
welcome-sidebar
welcome-surajsli
welcome-suyash_
welcome-syntaxerror
welcome-tauno
welcome-tauno
welcome-tawnoz
welcome-teclali
welcome-tls
welcome-turbosepp
welcome-vikram_shadow
welcome-yann
Powered by Linen
support-questions
  • k

    kamyab

    10/07/2022, 5:53 AM
    Hi team, i am getting 404 in auth/signup api, i have setup the frontend in react and backend in fastapi. can anyone please help here? Database in postgres.
    n
    • 2
    • 27
  • n

    nkshah2

    10/07/2022, 6:07 AM
    signup 404
  • s

    sneaker | Jan

    10/07/2022, 6:15 AM
    Hello together We are implementing SuperTokens within our application for the first time. First of all, the documentation and the coding examples on your webpage are great! I still got some questions though. 1. We would like to have an initial user within our database right at application startup. Is there a way to configure an initial admin user (not the db account)? 2. Regarding question 1. We thought about creating a user right on startup within our application but we consider this unsafe/vulnerable. I saw that other IDPs sort of work with a client-secret which could be safely stored. Is there a similar mechanic in SuperTokens? 3. Is there some sort of admin panel (UI)? As far as I'm concerned, I haven't found one or seen any notes about one. 4. We are using SuperTokens in a FastAPI(python) backend. I haven't found out how I can overwrite the SignUp method and make a role assignment right on signing up. I saw a few documentations such as https://supertokens.com/docs/userroles/managing-roles-and-users and https://supertokens.com/docs/thirdparty/common-customizations/handling-signinup-success but its hasn't worked out for me. Could you please provide us some python coding example?
    n
    s
    • 3
    • 39
  • l

    Leonxx

    10/07/2022, 8:52 AM
    Hello. guys. I have a question about microservice JWT verification. Been following through the docs but still didn't understand
    p
    • 2
    • 51
  • g

    ggishant

    10/07/2022, 9:35 AM
    Hi guys, I'm using supertokens to authenticate a Google Sheets Add On using Google as Third Party Provider. I am unable to get through a CORS Issue which wasn't there before in the application. Only the sign-in api is failing with CORS error. Any help on this?
    n
    r
    • 3
    • 77
  • j

    Jim Gambit

    10/07/2022, 10:06 AM
    Hi team, We are trying to migrate the existing users from Development Environment to Production environment such that the user does not have to signup again after the migration. From my understanding of Migration section, I need to do following: 1. Get all the user data from Devlopment instance 2. Iterate over each user and make curl request to import the user email id and password hash in Production environment 3. Make request to map userIds of Production instance with the userIds of the Development instance Is this approach correct? Also, I understand we nee to upgrade the instance to the latest version, currently its version 3.14. Are there any breaking changes that might happen because of the upgrade?
    n
    • 2
    • 24
  • v

    vladmit

    10/07/2022, 12:01 PM
    Hello guys. I am getting the following error for some of recipe endpoint:
    ERROR: relation "userid_mapping" does not exist
    Any idea why?
    n
    r
    • 3
    • 14
  • t

    TuMorrow

    10/07/2022, 7:29 PM
    Hi! I am trying to put some data into the user's session. From what I read in the documentation, it says that I should override the default
    createNewSession
    implementation. I am trying to do so, but the new function doesn't seem to get called. Here is a code snippet
    ts
    SessionNode.init({
        override: {
            functions: (originalImplementation) => {
                return {
                    ...originalImplementation,
                    createNewSession: async function (input) {
                        console.log("function is working!"); // <-- this doesn't get logged
    
                        return originalImplementation.createNewSession(
                            input
                        );
                    },
                };
            },
        },
    }),
    Can you tell me if I am doing something wrong? Thanks in advance
    r
    • 2
    • 24
  • c

    chugharyan816

    10/07/2022, 7:34 PM
    Hi! I am using SuperTokens core with Postgres and started with the following image:
    registry.supertokens.io/supertokens/supertokens-postgresql
    I am not able to hit the GET session info endpoint:
    /recipe/session
    (GET) with the query parameter
    sessionHandle
    The logs show that no such endpoint exists. Following are the logs: 07 Oct 2022 19:21:46:007 +0000 | ERROR | pid: 55ea18c6-0112-4899-a3a7-0785a6643219 | [http-nio-0.0.0.0-3567-exec-10] thread | io.supertokens.webserver.api.core.NotFoundOrHelloAPI.service(NotFoundOrHelloAPI.java:57) | Unknown API called: http://127.0.0.1:3567/recipe/session/ Please help me with this
    r
    • 2
    • 8
  • c

    chugharyan816

    10/07/2022, 7:35 PM
    If I query the endpoint to get all user sessions then I can see the respective session handle but cannot get information regarding that specific session handle as mentioned above
  • c

    chugharyan816

    10/07/2022, 7:40 PM
    I also had a doubt regarding removing a user session If I use the remove session endpoint (
    /recipe/session/remove
    ) and get a 200 response code, the session is removed from DB (I cannot see it in all user sessions endpoint (
    /recipe/session/user
    ), did this just to confirm if the session is removed) but if I pass the access token to the session verify endpoint (
    /recipe/session/verify
    ) why does it still return status code 200 when I have removed the session from db?
    r
    • 2
    • 7
  • c

    chugharyan816

    10/07/2022, 8:05 PM
    Get Session Info Error
  • r

    rp

    10/08/2022, 4:38 AM
    Create new session override
  • r

    rp

    10/08/2022, 4:43 AM
    Access token stateless
  • c

    Chunkygoo

    10/08/2022, 4:47 AM
    Im trying to call the backend api using a vanilla axios. Iโ€™ve added rid in the headers, and attempting to POST a json object of formfields with an array of objects - email and password (just like how the testing with postman section has specified). However, I keep getting an error when attempting to POST. Essentially Iโ€™m trying to create a user without using the sign in/up form. Am I missing some headers etc?
    r
    • 2
    • 71
  • d

    DarkPhoenix

    10/08/2022, 5:14 AM
    [Nest] 64803  - 10/08/2022, 10:37:13 AM   ERROR [ExceptionHandler] Nest can't resolve dependencies of the AuthGuard (?). Please make sure that the argument Object at index [0] is available in the ProfileModule context.
    
    Potential solutions:
    - If Object is a provider, is it part of the current ProfileModule?
    - If Object is exported from a separate @Module, is that module imported within ProfileModule?
      @Module({
        imports: [ /* the Module containing Object */ ]
      })
    Receiving this error when using AuthGuard in nestjs. i followed exactly by the docs
    r
    • 2
    • 7
  • p

    phacies

    10/08/2022, 11:22 AM
    Hello am trying to implement the phone number and password auth in my svelte application, can anyone point me in the right direction
    r
    • 2
    • 3
  • i

    IaS1506

    10/08/2022, 1:49 PM
    Hi @rp, i recently switched from supertokens node 11.0.2 to supertokens node 12.0.3. In 11.0.2 i used emailVerificationFeature and resetPasswordFeature in init EmailPassword, but in 12.0.3 there are no first one and second one without changing link function... So, how can I upgrade to the latest version without cutting functionality?
    r
    • 2
    • 11
  • i

    IaS1506

    10/08/2022, 5:11 PM
    Hi @rp, can i override default supertokens self-hosted port? by default it is 3567, but i want 4000 for example(bc i have different instances of supertokens)
    r
    • 2
    • 36
  • c

    Chunkygoo

    10/09/2022, 2:09 AM
    my frontend keeps attempting to refresh even though i just logged in
    r
    • 2
    • 122
  • p

    Pasindu

    10/09/2022, 6:56 AM
    Hi, I'm usinb supertokens react + node with email and password recipe. I need to assign roles to the user. Like assign an attribute like admin and after login if the user is admin I need to conditionally render some items. What is the possibility of doing this? Also is there any way to make user an admin from the supertokens dashboard instead of the code?
    r
    c
    • 3
    • 4
  • a

    aV

    10/09/2022, 8:16 AM
    @rp How can I delete/remove the trace of the user from supertokens. My usecase is that when a user signs up at frontend the backend creates a profile for that user in separate database. If the profile creation fails, backend flushes the user both from its database and supertokens as well.
    r
    • 2
    • 4
  • j

    JacobLUC

    10/09/2022, 3:15 PM
    I'm trying to add email verification as documented here: https://supertokens.com/docs/emailpassword/common-customizations/email-verification/about However I get the following error:
    Argument of type '{ mode: string; }' is not assignable to parameter of type 'TypeInput'.
    r
    • 2
    • 64
  • d

    DarkPhoenix

    10/10/2022, 7:08 AM
    I am trying to create a websocket server & I need to authenticate the clients. I can authenticate them in rest apis , how can i do it using Socket.io with supertokens..
    r
    • 2
    • 4
  • k

    kamyab

    10/10/2022, 7:58 AM
    Hi Team, Need to integrate
    Core driver interface
    can anyone please help me to setup in my project? need to get user meta details via Core driver interface. and also one more question can we exposed signIn and signUp api? why i am asking this because i have to add some logic when user is logged in or signup.
    n
    • 2
    • 14
  • u

    ulys

    10/10/2022, 12:35 PM
    Hey guys, I'm using your node-express sdk and trying to change the session timeout. The doc (https://supertokens.com/docs/emailpassword/common-customizations/sessions/change-session-timeout) mentions a config.yaml file but I was wondering if this could be achieved with an override in
    Session.init()
    ? If I were to override
    getRefreshTokenLifeTimeMS
    for example would that have the same effect ?
    r
    • 2
    • 6
  • l

    lukas.grigis

    10/10/2022, 12:42 PM
    Hi all I've got a few questions regarding the multi-tenancy capacity of supertokens. who can help me?
    r
    • 2
    • 17
  • d

    djang0

    10/10/2022, 10:09 PM
    Hey everyone, is there some explanations using supertokens with nest & fastify adapter ? it seems sligthly different than express, thanks ๐Ÿ˜„
    r
    • 2
    • 2
  • r

    rp

    10/11/2022, 2:52 AM
    Nest with fastify
  • p

    phacies

    10/11/2022, 8:54 AM
    I was looking to integrate the phone and password type of auth in a project but the documentation on vanilla js is not clear.Are there any resources that can help with that?
    r
    • 2
    • 5
Powered by Linen
Title
p

phacies

10/11/2022, 8:54 AM
I was looking to integrate the phone and password type of auth in a project but the documentation on vanilla js is not clear.Are there any resources that can help with that?
r

rp

10/11/2022, 8:55 AM
Hey! We are about to launch docs (today) that guide you thought a custom UI setup.
So have a look at those in sometime
hey @phacies we have updated the docs to show custom UI setup for the recipes. FOr phone password, you want to checkout the emailpassword recipe's custom UI setup section. But of course, instead of the email, you give it the phone
p

phacies

10/11/2022, 1:50 PM
Alright
Just went through the docs, it's neat and clean, would implement it later in the day. Thanks ๐Ÿ˜Š, look to adding up to your team
View count: 2