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

    raviagheda

    07/16/2021, 5:15 PM
    yeah!
  • r

    rp

    07/16/2021, 5:15 PM
    so if process is not defined, then
    process !== undefined
    should be false and other conditions should not be checked..
  • r

    raviagheda

    07/16/2021, 5:16 PM
    we applied
    const process = process || undefined;
    and it was working!
  • r

    rp

    07/16/2021, 5:16 PM
    hmmmm.. interesting.
  • r

    rp

    07/16/2021, 5:16 PM
    can you print out the value of
    process
    before
    const process = process || undefined;
    ?
  • r

    raviagheda

    07/16/2021, 5:27 PM
    same thing!
  • r

    rp

    07/16/2021, 5:27 PM
    I see.
  • r

    rp

    07/16/2021, 5:27 PM
    I know what the issue is..
  • r

    rp

    07/16/2021, 5:28 PM
    will released a fix in 20-30 mins..
  • r

    rp

    07/16/2021, 5:28 PM
    thanks for pointing this out
  • r

    raviagheda

    07/16/2021, 5:28 PM
    sure thanks!
  • r

    rp

    07/16/2021, 6:01 PM
    @User , i have released a new version for supertokens-website v8.1.1 which should have the fix.. lmk if the error still persists 🙂
  • d

    dr_goodcall

    07/19/2021, 12:07 AM
    Hey guys, thank you for SuperTokens! I'm trying to evaluate if SuperTokens could be a good fit to migrate from Auth0. We want to migrate mainly because the local development experience of Auth0 is awful, you just can't run it locally. (+ their lack of discord or slack community is very frustrating) So my main requirements are to be able to : - 1 / run the authentication service locally for dev and self-hosted for staging - 2 / update the JWT with the user's roles, both at the token creation time and later (eg. when we let the user chose the identity he wants for its current session, when a user has many identities linked to its account (eg. 1 user account -> 3 identities in 3 companies as employee, and 1 identity as manager)) - 3 / synchronize users that have been created upfront by the backend (eg. when inviting a team member, or user) with the user created when he signs up 1 / this seems OK 2 / I read the doc and found a way to do both 3 / It's not clear if the SuperTokens (when self-hosted) DB/schema is separate from my main DB where I store my users and main data model? Can they be the same DB? Or do SuperTokens needs an isolated DB/schema? If this is the case how can I synchronize new supertokens users (signup) with the users I provisioned upfront in my own main DB? If SuperTokens can run on my own main DB/schema (ie. I only have one user table then) how can it work when I use the hosted version of SuperTokens? Thank you so much!
  • r

    rp

    07/19/2021, 3:47 AM
    Hey @dr_goodcall. You should keep supertokens tables separate from your tables. On sign up, we insert the user’s userId, email and timeJoined into our table (plus third party info if they used that to login)
  • r

    rp

    07/19/2021, 3:48 AM
    You can add post sign up logic to insert any other info that you may want to associate with the user in your own table
  • r

    rp

    07/19/2021, 3:48 AM
    If there is no other info against a user, then you don’t need to do anything post sign up.
  • r

    rp

    07/19/2021, 3:49 AM
    You can tell supertokens to create its tables in the same db as your other tables. Not an issue
  • r

    rp

    07/19/2021, 3:50 AM
    If you use the hosted version of supertokens, AND you have some other user metadata to store, then you will need to create your own table in your own db to store that meta data
  • r

    rp

    07/19/2021, 3:51 AM
    However, if you don’t have additional meta data, then you don’t need to create the extra. You can query supertokens to get info for any user or paginate across all users.
  • z

    Zoomeez

    07/19/2021, 1:02 PM
    Hi guys, what is the best way to change language in sign in/up form? Supertokens.init is called before the language is fetched, so I can't provide it in formFields config.
  • r

    rp

    07/19/2021, 1:38 PM
    Is your language dynamically chosen?
  • r

    rp

    07/19/2021, 1:39 PM
    @User ^
  • z

    Zoomeez

    07/19/2021, 1:40 PM
    yes
  • r

    rp

    07/19/2021, 1:41 PM
    hmmmm
  • r

    rp

    07/19/2021, 1:42 PM
    At the moment, the best way would be to directly change it using JS.. via dom manipulaiton
  • r

    rp

    07/19/2021, 1:43 PM
    we have an open issue for this: https://github.com/supertokens/supertokens-auth-react/issues/233
  • r

    rp

    07/19/2021, 1:44 PM
    An alternate method is to disable the default implementation and copy / paste the theme code from the auth-react repo into your own repo and modify that. This is equivalent to a "swizzle" if you are familiar with that concept.
  • r

    rp

    07/19/2021, 1:44 PM
    It's explained in the issue itself.
  • z

    Zoomeez

    07/19/2021, 1:53 PM
    thanks, I'll look into it!
  • n

    nim4ze

    07/20/2021, 1:32 PM
    Hi, after a successful password reset, this form appears. What is it called/what should be imported to be able to customize its styling in react?
Powered by Linen
Title
n

nim4ze

07/20/2021, 1:32 PM
Hi, after a successful password reset, this form appears. What is it called/what should be imported to be able to customize its styling in react?
View count: 3