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
  • m

    muhajirdev

    09/26/2022, 5:41 PM
    Hey guys, what could be causing this infinite refresh? Is there any information I can provide
    r
    • 2
    • 18
  • i

    IaS1506

    09/27/2022, 6:57 AM
    Hi, when i use supertokens as microservice with nginx, for requests i get 'Cannot send secure cookie over unencrypted connection'. So, other services, like strapi, have a specific config settings to avoid this. Are any in supertokens to fix this?
    r
    • 2
    • 10
  • e

    execreate

    09/27/2022, 11:21 AM
    Hey guys, I'm trying to implement PhoneNumber-Password recipe in Python Django framework and I'm stuck with overriding the reset password logic
    r
    • 2
    • 11
  • f

    Farmo-Dev

    09/27/2022, 1:01 PM
    Hi! I'm trying to implement SuperTokens social + email/pass together with Hasura actions, nest.js backend and a react-native front end. I've come across a problem that i don't really understand. I have a functional action in hasura, that for all i know, runs the function in the nest backend and returns a successful login from Supertokens. But for some reason, the session is undefined in the react native client. Does this ring any bells for anyone? I'm not getting any errors or trace stacks, that's what makes this hard. I just want to understand why my sessions is not set. /all the best, Farmo-dev
    r
    n
    • 3
    • 17
  • i

    IaS1506

    09/27/2022, 5:21 PM
    Hi, is there any option/function in thirdparty/emailpassword/passwordless to send email after sucessfull registration?
    r
    • 2
    • 5
  • v

    Vrl

    09/27/2022, 5:44 PM
    is there a way to list all users?
    r
    • 2
    • 1
  • s

    sharpdev426

    09/27/2022, 9:20 PM
    which users?
  • r

    rp

    09/28/2022, 3:31 AM
    List all users
  • n

    Nabeel

    09/28/2022, 6:57 AM
    Hello , I am using the thirdpartypasswordless recipe for backend and hosted the supertokens core using helm-chart with following config snippet [ref : https://github.com/supertokens/supertokens-docker-postgresql/tree/master/helm-chart ] __________________________ # -- Time in seconds for how long an access token is valid for accessTokenValidity: 604800 # -- If true, allows for immediate revocation of any access token. Keep in mind that setting this to true will result in a db query for each API call that requires authentication. accessTokenBlacklisting: false # -- If this is set to true, the JWT (access token) signing key will change every fixed interval of time. accessTokenSigningKeyDynamic: true # -- Time in hours for how frequently the JWT (access token) signing key will change. This value only makes sense if "accessTokenSigningKeyDynamic" is true. accessTokenSigningKeyUpdateInterval: 168 # -- Time in mins for how long a refresh token is valid for. refreshTokenValidity: 1209600 # -- Time in milli-seconds for how long a password reset token is valid for. passwordResetTokenLifetime: 3600000 ______________________________________ Now, on successful signin, the session is created but its expiry is way too long (~2 years) in the DB row of session_info table against the corresponding session handle, however, I have intended to set the expiry to 604800 seconds (7 seconds) as mentioned in the helm-chart values note that on decoding the sAccessToken on online jwt decoder for the same session handle, it gives the expiry timestamp of 7 days from creation however in code, this statement: expiryTimestamp, err := sessionContainer.GetExpiry() is returning the expiry timestamp of about 2 years from now, which is same as the DB entry in session_info table
    r
    • 2
    • 11
  • r

    rp

    09/28/2022, 7:12 AM
    Sess
  • d

    doron

    09/28/2022, 10:06 AM
    Hi, I'm thinking about switching my server environment to functions / edge functions. There's seemingly support for functions but your docs state:
    Please refer the Serverless Deployment section (Towards the bottom of the navigation index)
    Which I can't find, does it exist or am I blind? 😅 Regarding edge functions environment, I'd like to use Cloudflare Workers, do you offer native support for the runtime?
    r
    m
    • 3
    • 8
  • b

    bert2002

    09/28/2022, 2:07 PM
    To handle actions after the signup at https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/handling-signinup-success with
    override_thirdpartyemailpassword_apis()
    is it possible to get the user id? I would expect that
    client_id
    will have one, but it is
    None
    .
    r
    • 2
    • 17
  • j

    JustDante

    09/28/2022, 2:43 PM
    Hello, i have a little problem with cors policy settings. Everytime i login in, i get errors below. Backend is written with expressjs, front end with react.
    r
    • 2
    • 45
  • t

    tjayleno

    09/28/2022, 6:26 PM
    Hi, is there a way to setup a predefined test phone number and sms code for passwordless auth in supertokens-node? e.g for phone number 12345678 and code 123456 bypass sms auth and create session for a test user?
    r
    • 2
    • 5
  • s

    sklorn

    09/28/2022, 7:17 PM
    Hi, I'm trying to implement a basic POC in python (running core in a docker container), but I'm having issues configuring supertokens. I'm just running a simple FastAPI server and want to test social login. However, I'm getting a bunch of log messages from the middleware about not being able to handle my request (no recipe matched), and it looks like the middleware is just being bypassed. Here's my code (using the client_id/secret from the docs...)
    r
    • 2
    • 15
  • a

    ashhh

    09/29/2022, 12:30 AM
    I've implemented the with_thirdpartyemailpassword-2fa-passwordless 2FA example into my frontend template and all appears to be working fine excepts when I call
    await signOut();
    the client session hangs and becomes unresponsive and eventually chrome closes the window. There are no console logs. The functions makes a call to
    http://localhost:3001/auth/signout
    which responds 200 ... I was under the impression that a successful signOut yields 401. Does anyone have any suggestions? Is it okay to just post http://localhost:3001/auth/signout and then clear cookies?
    supertokens-auth-react
    self hosted core.
    r
    • 2
    • 22
  • t

    TechUser

    09/29/2022, 7:24 AM
    Hello, I've implemented emailpassword recipe with fastify node.js backend and vue 3 frontend. I did the rest api endpoints authentication using verifySession as per the documentation. But whenever the access token expires it doesnt get refreshed through refresh token and im getting an error message: "try refresh token". I dont understand where im going wrong.
    r
    • 2
    • 9
  • t

    TechUser

    09/29/2022, 7:30 AM
    message has been deleted
  • r

    rp

    09/29/2022, 8:09 AM
    session refresh
  • s

    shorthair_[]

    09/29/2022, 10:25 AM
    hey guys
  • s

    shorthair_[]

    09/29/2022, 10:25 AM
    how can i get user info using a http request?
    r
    • 2
    • 4
  • s

    shorthair_[]

    09/29/2022, 10:26 AM
    using django
  • s

    shorthair_[]

    09/29/2022, 10:26 AM
    and can i integrate the database with a rest api?
  • s

    shorthair_[]

    09/29/2022, 10:26 AM
    *database of users
  • s

    shorthair_[]

    09/29/2022, 10:30 AM
    @rp i mean using the fetch api to get user info and like maybe displaying it on a screen?
  • g

    Glitch (They/them)

    09/29/2022, 12:28 PM
    Hey there, it seems SuperTokens doesn't have a PHP SDK?
    r
    • 2
    • 4
  • r

    rp

    09/29/2022, 1:44 PM
    With PHP
  • i

    IaS1506

    09/29/2022, 4:46 PM
    Hi, is there any way to add own logger to supertokens to log requests (I am using middlleware)?
    r
    • 2
    • 14
  • a

    Alex

    09/29/2022, 8:58 PM
    Hey, I'm looking at doing email verification but I store a username instead of an email. I bit of a complicated flow. We are wanting to be anonymous - hence the interesting use-case. But I want the flow to be: - Send verification to a specific email - User verifies the code within our app - User has a username automatically generated for them that we have stored in supertokens - User is able to then update their username / set a password if they chose (but we don't require them to)
    r
    • 2
    • 47
  • d

    dreamer

    09/30/2022, 12:45 AM
    Just set up the SuperTokens auth for NextJS and have to say, by far the smoothest and best experience I've had implementing auth so far (Supabase, NextAuth, etc.). Documentation is fantastic and the api is intuitive. Fantastic job, excited to become a SuperTokens user!
Powered by Linen
Title
d

dreamer

09/30/2022, 12:45 AM
Just set up the SuperTokens auth for NextJS and have to say, by far the smoothest and best experience I've had implementing auth so far (Supabase, NextAuth, etc.). Documentation is fantastic and the api is intuitive. Fantastic job, excited to become a SuperTokens user!
View count: 1