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
general
  • d

    darknova

    10/01/2022, 2:29 PM
    Hi for supertokens nextjs , is there any auth decorator available for supertokens for nextjs to protect the apis routes ?
    r
    2 replies · 2 participants
  • r

    rp

    10/01/2022, 2:52 PM
    NextJS api route
  • h

    HarryET

    10/04/2022, 7:22 PM
    👋🏼 Is there a way to do Organizations similar to WorkOS or 0Auth?
    r
    27 replies · 2 participants
  • h

    hauckre

    10/08/2022, 10:08 AM
    Hi, I asked a while ago how I can implement Supertokens in an Ionic app. I was then referred to the page "Localstorage instead of cookies" (https://supertokens.com/docs/emailpassword/advanced-customizations/examples/localstorage/about), which also helped me a lot. Now, after a while, the access token expires and has to be refreshed. Supertokens also makes the Api call "refresh" automatically and it seems to work, but the Api endpoint still responds with ``401 try to refresh token``. This leads to an endless loop. If I now restart the page within the Ionic app, everything works again and the api always returns a 200 from now on, until the time when the access token expires again. I don't understand why this is happening. I manually set the header entry st-cookie in the app and the BackEnd reads this and overwrites the cookie entry. Am I doing something wrong? Thx
    r
    p
    14 replies · 3 participants
  • v

    Vlad

    10/11/2022, 12:19 PM
    Is there support for mandatory password changes based on time? For example, requiring someone to change their password every 6 months?
    r
    5 replies · 2 participants
  • a

    ankur.space

    10/13/2022, 7:28 PM
    https://softwareengineeringdaily.com/2022/10/13/open-source-authentication/
  • g

    gwenael

    10/18/2022, 9:36 AM
    hi
  • g

    gwenael

    10/18/2022, 9:37 AM
    I have created an account to your service via Google, and now I want to migrate it in an email mode. Is-it possible ?
    r
    5 replies · 2 participants
  • g

    gwenael

    10/18/2022, 9:38 AM
    super
  • t

    Trey

    10/20/2022, 12:25 AM
    Has anyone implemented Twitch Oauth2 with SuperTokens? I need to be able to SSO from Twitch and Discord into my app but Twitch's Oauth2 implementation is a little out of spec
  • v

    Vlad

    10/22/2022, 3:01 AM
    Is it possible to support multiple recipes? Wondering if it's possible to do email+password and passwordless? That way someone can have a password, but can just use an email if they wanted to
    r
    19 replies · 2 participants
  • r

    rp

    10/22/2022, 3:51 AM
    Support multiple recipes
  • d

    doraig

    10/22/2022, 7:06 PM
    Quick question, with respect to role and permission validation can we create a custom validator in overrideGlobalClaimValidators?
    r
    8 replies · 2 participants
  • b

    Brian.Mc

    10/22/2022, 10:44 PM
    https://tenor.com/view/super-bowl-live-under-a-rock-thats-enough-no-more-work-gif-16220317
  • b

    Brian.Mc

    10/22/2022, 10:44 PM
    I must have been under a rock, but THANK YOU for the article of how to integrate SuperTokens with Hasura. Now, I know what backend seems like a perfect fit for my project, while not screwing me later if things do happen to scale! 🤝 😍
  • r

    rp

    10/23/2022, 4:32 AM
    Custom validator
  • d

    DarkPhoenix

    10/25/2022, 1:22 AM
    Hey, We currently have a platform with SuperTokens passwordless authentication... & Another with firebase GitHub Authentication Is there any way to migrate users from firebase to supertokens? Many users from supertokens platform also also have account in firebase
    r
    2 replies · 2 participants
  • a

    Ayush6543

    10/25/2022, 4:02 AM
    How can I manage session for users with username and password
    r
    2 replies · 2 participants
  • r

    rp

    10/25/2022, 4:06 AM
    Migration of users
  • a

    Ayush6543

    10/25/2022, 1:24 PM
    Hey I am running supertokens core in my computer, when I shut down my pc, and start it again. In the dashboard I can't see a single user afterwards
    r
    40 replies · 2 participants
  • a

    Ayush6543

    10/27/2022, 2:15 PM
    How can I use typescript with supertoken plain javascript module?
    r
    2 replies · 2 participants
  • a

    Ayush6543

    10/27/2022, 2:15 PM
    I need user types after sign in
  • k

    Kaktus 🌵

    10/30/2022, 8:50 AM
    Do you guys know if it possible to integrate SuperTokens with SIWE (Sign-In with ethereum) ?
    r
    4 replies · 2 participants
  • m

    Malik Dixon

    10/31/2022, 6:09 PM
    Hello, can someone tell me what SuperTokens.com is about, please?
  • r

    Rob Schilder

    11/03/2022, 7:43 AM
    can you read the website? they wrote it very nicely there
  • j

    jj_

    11/03/2022, 8:53 AM
    Hello, just want to confirm , if supertoken APIs with email sending features has any way to limit number of emails being sent. Even though we have implemented a custom email sending function.
    r
    2 replies · 2 participants
  • t

    Trey

    11/03/2022, 6:56 PM
    I’m working on a multi tenant app with a centralized user store. The idea is to give users a subdomain,
    user.saas.com
    , but also give them the option to use their own domain if they want,
    user.xyz
    . My users will mostly create accounts via SSO and I don’t want to have to add every custom domain to my redirect URLs for say, Discord’s Oauth2. Can SuperTokens handle being that service?
    r
    5 replies · 2 participants
  • d

    dhatGuy

    11/07/2022, 8:37 PM
    I checked this (commit history) but can't access the
    originalImplementation
    object. Is there an updated example?
    r
    7 replies · 2 participants
  • r

    rp

    11/08/2022, 5:17 AM
    original implementation access
  • d

    doraig

    11/16/2022, 4:03 AM
    After upgrading to version 12 of super token node , i am seeing the the new api mergeIntoAccessTokenPayload is not updating the jwt payload unlike the updateAccessTokenPayload did
    r
    9 replies · 2 participants
Powered by Linen
Title
d

doraig

11/16/2022, 4:03 AM
After upgrading to version 12 of super token node , i am seeing the the new api mergeIntoAccessTokenPayload is not updating the jwt payload unlike the updateAccessTokenPayload did
r

rp

11/16/2022, 4:18 AM
Hey @doraig that function works a little differently compared to updateAccessTokenPayload. It attempts a shallow merge, unlike updateAccessTokenPayload which overwrites entirely
That being said, mergeIntoAccessTokenPayload internally uses updateAccessTokenPayload.
What’s the issue you are facing?
d

doraig

11/16/2022, 5:18 AM
The jwt in the access token does not get updated with the new attributes when using the merge function
r

rp

11/16/2022, 5:19 AM
can you share some code about how you are doing this?
does the access token payload get updated, but the JWT payload doesn't?
or do both don't get updated?
right. I can see the bug. Thanks. Will fix.
hey @doraig thanks for pointing this issue out. We have released the fix for this in node SDK version >= 12.0.6
View count: 2