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

    HHChift

    08/02/2022, 9:00 PM
    Hey all, is there a way with Supertokens to handle account management ? I have multiple users with different roles (admin, user) linked to one account. These users can only retrieve data from entries linked to that account. Pretty common for B2B apps. How do you deal with that ? Thanks a lot
    r
    v
    • 3
    • 136
  • a

    Arjun

    08/02/2022, 10:10 PM
    anyone had difficulty deploying SuperTokens-Core to Digital Ocean? The logs mention that
    Started SuperTokens on 0.0.0.0:3567 with PID: 26
    but then the instance crashes almost immediately.
    r
    • 2
    • 1
  • r

    rp

    08/03/2022, 5:28 AM
    roles quesiton
  • r

    rp

    08/03/2022, 5:29 AM
    Digital ocean deployment issue
  • y

    yzs

    08/03/2022, 9:25 AM
    hi! why sometimes SuperTokens prints
    Failed to fetch
    ?
    r
    • 2
    • 14
  • i

    IaS1506

    08/03/2022, 12:04 PM
    Hi, I use localhost for local development at front and remote server at backend api. So when Im trying to connect that way by social, emailpassword or passwordless I get 401 error for endpoints. I think thats because localhost has another cookies domain and server cant get shared them. And the question is: how can i effectively connect from localhost at front to server at back to organise my local development and to make everything work fine?
    r
    • 2
    • 21
  • n

    nxteword

    08/03/2022, 4:55 PM
    Hey, I have added a custom field to the backend (nodejs) using the guide on the website, now it looks like it’s expecting the field to be present on signin as well, how can I make it signup only field?
    r
    • 2
    • 6
  • d

    doei

    08/03/2022, 5:44 PM
    Hi ! There's currently an [issue](https://issuetracker.google.com/u/1/issues/211370835?pli=1) with google OAuth2 that prevents controlling test user access. Is there an easy way to block social sign up from supertokens back end ?
    r
    • 2
    • 14
  • g

    Gabrielius

    08/04/2022, 11:05 AM
    Hello, I'm using
    updateAccessTokenPayload
    to update the the session payload and it shows the new roles when I check the JWT cookie
    sAccessToken
    in the browser. However when I run
    await Session.getAccessTokenPayloadSecurely()
    in a Next.js frontend, I still get the old values even when I see the new cookie. It only seems to update when I log out and back in and a brand new session being generated. Does this function take the values directly from the cookies or somewhere else?
    r
    • 2
    • 3
  • r

    rp

    08/04/2022, 11:23 AM
    Frontend access token payload not updating
  • f

    Felix Schaipp

    08/04/2022, 2:14 PM
    Hi, we currently use an older self hosted version of supertokens (react (supertokens 0.15) frontend + python backend) with the email + password recipe. Is it possible to migrate that setup to the passwordless recipe? (I couldn't find anything in the docs on how to migrate between different recipe types)
    r
    • 2
    • 3
  • r

    rp

    08/04/2022, 2:29 PM
    Migration to passwordless
  • a

    Alankazam

    08/04/2022, 6:59 PM
    Can I customize SMS content using Supertokens paid service?
    r
    • 2
    • 3
  • r

    rp

    08/05/2022, 3:56 AM
    Customising sms for paid service
  • s

    sharma

    08/05/2022, 4:40 AM
    For passwordless recipe implementation using web-js-sdk It's not clear from the docs which fn should I use. There are multiple fn is SDK reference. So I'm just guessing from the fn names that probably these are all the steps/code I need to have for authentication 1. Create passwordless code -
    superTokensPasswordless.createCode({ email: "john@example.org" })
    2. Now either they will type in the code in a form I provide or they will visit the email link. If they visit the link, I will get their code like this
    const userInputCode = superTokensPasswordless.getLinkCodeFromURL()
    3. Then I will verify the code -
    superTokensPasswordless.consumeCode({ userInputCode: "8465AWETA" }).then((res) => { if(res.createdUser){ console.log(JSON.stringify(res.user))} })
    Session should be automatically set now Am I missing anything?
    r
    n
    • 3
    • 28
  • y

    yzs

    08/05/2022, 8:27 AM
    hi! can i override how
    <EmailPassword.EmailPasswordAuth>
    from 'supertokens-auth-react' redirects to auth? i want to add a query param
    r
    • 2
    • 16
  • s

    sharma

    08/05/2022, 9:40 AM
    Issue with request session payload @nkshah2
    n
    • 2
    • 2
  • s

    Sharukh Rahman

    08/05/2022, 9:48 AM
    hi.. how to pass a header in Thirdparty.signinup({}).. tried options: { requestInit: { headers: { "x-referral-code": localStorage.getItem("referral"), }, }, }, but this doesnt work.. and also this ThirdParty.init({ preAPIHook: async (request) => { request.requestInit.headers["x-referral-code"] = localStorage.getItem("referral"); }, }),
    n
    • 2
    • 6
  • h

    HHChift

    08/05/2022, 6:40 PM
    Hey All, I'm storing custom sign up fields in the user metadata and I want to put them in the access token payload. So I override the signUpPOST and the createNewSession ... the issue is that on sign up the user metadata is still empty for the createNewSession method and so the access token on the frontend will not contain the metadata fields. Is there a way to bypass this? Maybe on post sign up on the frontend, refresh the token explicitly ? Is that possible ? thanks
    r
    • 2
    • 3
  • r

    rp

    08/05/2022, 7:33 PM
    Modifying session in sign up
  • w

    Wildson

    08/05/2022, 9:19 PM
    What can be happening to not load the css?
    r
    f
    • 3
    • 5
  • r

    rp

    08/06/2022, 3:21 AM
    No Css issue
  • d

    doei

    08/07/2022, 11:22 AM
    Hi, I'm trying to setup auth with my chrome extension, I've browsed past questions about this problem, and it seems the most straightforward solution is to use jwt with localstorage. But there's a couple things I'm still wondering: - I've tried setting the
    cookieSameSite
    option to none, and I can see that it is indeed set with the option, however, when launching request from the extension, the cookies are not there, why is that the case ? - If choosing to use the jwt with localstorage approach, does it mean that refresh the session does not work anymore ?
    r
    • 2
    • 84
  • r

    rp

    08/07/2022, 1:18 PM
    With brower extension
  • s

    Sharukh Rahman

    08/08/2022, 4:40 AM
    https://pub.dev/packages/supertokens does this support web? and can i make custom ui for login in flutter? if yes any resources/example app will be helpful
    n
    • 2
    • 4
  • y

    yzs

    08/08/2022, 11:01 AM
    hi! i know i can add additional fields in sign up page. but can i make them of different type? i need a radio or select input for users to select a role
    r
    • 2
    • 6
  • m

    muhajirdev

    08/08/2022, 12:02 PM
    Hey, quick question. How does the supertoken handling the parallel refreshToken rotatation? I mean, when the refresh token need to roatated. And there's 2 parallel request doing this. One of the will invalid (assuming the token is saved in browser cookie) does it have a grace period or something?
    r
    • 2
    • 5
  • r

    rp

    08/08/2022, 12:14 PM
    Handling of parallel refresh token requests
  • l

    Leander

    08/08/2022, 12:23 PM
    Hey, I was trying to edit the signup error msg: "Email already exists. Please signin instead.", but I havent figured out where this can be overwritten. Any help would be appreciated.
    r
    • 2
    • 7
  • b

    Binouse

    08/08/2022, 12:58 PM
    Hi, can I find an example of a
    setUserIdMapping
    function implementation somewhere ?
    r
    • 2
    • 17
Powered by Linen
Title
b

Binouse

08/08/2022, 12:58 PM
Hi, can I find an example of a
setUserIdMapping
function implementation somewhere ?
r

rp

08/08/2022, 12:59 PM
Hey! So you want an example where you are storing a mapping of supertokens and an external user id in table?
b

Binouse

08/08/2022, 1:01 PM
If possible, it would be great. You are storing both of them in supertokens tables or in an external one ?
r

rp

08/08/2022, 1:02 PM
in a table managed by supertokens core.
Let’s do one thing. We are about to release a new version of the core by tomorrow or day after which has a complete implementation of user id mapping. Once that’s released, it will be much easier for you to implement this.
b

Binouse

08/08/2022, 1:03 PM
So I need to add a column to thirdparty_users table with external_userId for example ?
Oh
That sound amazing
Haha
r

rp

08/08/2022, 1:04 PM
Yup! So maybe we can get on a call after that to help you integrate with that? Cause the backend SDKs will still take sometime to release, so a call might help to show you how to query the core manually
b

Binouse

08/08/2022, 1:08 PM
I'll try by my side and if I really struggle with it I will reach you. I don't want to take some of your time
Will any documentation be released with the feature ?
That lists the routes that I'll need ?
r

rp

08/08/2022, 1:08 PM
The docs will be updated, but not until we have changed the backend SDKs. Which might take some time. That’s why I was suggesting a call
The list of routes will be updated though. Yea
You can follow this GitHub issue to know when it’s release https://github.com/supertokens/supertokens-core/issues/463
b

Binouse

08/08/2022, 1:11 PM
That's very kind from you, I'll contact you if I'm struggling with it !
r

rp

08/08/2022, 1:11 PM
Sounds good
View count: 1