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

    rp

    11/14/2021, 6:39 PM
    Sorry.. you're gonna have to do the copy / paste route
  • m

    mpicciolli

    11/14/2021, 6:39 PM
    Ok 😩
  • r

    rp

    11/14/2021, 6:39 PM
    Yea...... well..
  • r

    rp

    11/14/2021, 6:40 PM
    lmk if you have any trouble with that. I'm happy to get on a quick call even to help you figure this out.
  • m

    mpicciolli

    11/14/2021, 6:42 PM
    If would like to update the version of supertokens I'll be annoyed with the code I copied and pasted no ?
  • r

    rp

    11/14/2021, 6:43 PM
    If it's a non breaking version you will update, then it won't be annoying.. cause it would still work.. If it's a breaking upgrade, it's gonna be annoying anyway haha
  • m

    mpicciolli

    11/14/2021, 6:43 PM
    Exactly. It's not perfect :/
  • r

    rp

    11/14/2021, 6:43 PM
    Yup.. not perfect indeed.
  • r

    rp

    11/14/2021, 6:45 PM
    We will think about how to make the interfaces design better so that stuff like this is possible without copy / pasting the code.
  • r

    rp

    11/14/2021, 6:45 PM
    I'll give you what to copy paste.. 2 mins
  • r

    rp

    11/14/2021, 6:56 PM
    Okay so this is rather long.. but here it goes
  • r

    rp

    11/14/2021, 6:57 PM
    https://gist.github.com/rishabhpoddar/07de224632f32ea78b58b1203426dd57
  • r

    rp

    11/14/2021, 6:59 PM
    The post sign up logic can come: - https://gist.github.com/rishabhpoddar/07de224632f32ea78b58b1203426dd57#file-customsigninuppost-ts-L40; and - https://gist.github.com/rishabhpoddar/07de224632f32ea78b58b1203426dd57#file-customsigninuppost-ts-L99 (if
    response.createdNewUser === true
    ) To insert the custom fields in the session, you can add them when calling the
    createNewSession
    function.
  • r

    rp

    11/14/2021, 7:09 PM
    You will need to import
    "axios"
    and
    "qs"
  • m

    mpicciolli

    11/14/2021, 7:10 PM
    Yes no problem. Thank you ! I ma going to try
  • m

    mpicciolli

    11/14/2021, 11:03 PM
    It works 🥳 . Thanks @User
  • r

    rp

    11/15/2021, 2:47 AM
    Ok great!!
  • t

    tdfirth

    11/16/2021, 7:59 PM
    Hey guys, hope you're well
  • t

    tdfirth

    11/16/2021, 7:59 PM
    I've been getting set up with supertokens and so far it's great. I've just run into a weird issue though
  • t

    tdfirth

    11/16/2021, 8:00 PM
    I am using vite to build my project and everything works beautifully in dev mode, but my production builds lead to a runtime error.
  • t

    tdfirth

    11/16/2021, 8:01 PM
    The error I am seeing is:
  • t

    tdfirth

    11/16/2021, 8:01 PM
    TypeError: cd.default.getInstanceOrThrow is not a function
  • t

    tdfirth

    11/16/2021, 8:01 PM
    I have create a minimal repo that replicates the issue for me here:
  • t

    tdfirth

    11/16/2021, 8:01 PM
    https://github.com/tdfirth/supertokens-debug
  • t

    tdfirth

    11/16/2021, 8:01 PM
    Been wrestling with this for some time 😅 , any thoughts would be much appreciated!
  • t

    tdfirth

    11/16/2021, 8:02 PM
    To replicate, you should just have to run
    npm build && npm serve
  • t

    tdfirth

    11/16/2021, 8:02 PM
    running the dev server with
    npm dev
    is fine
  • p

    porcellus

    11/16/2021, 8:03 PM
    Hi, I'll check it out in a bit 🙂
  • t

    tdfirth

    11/16/2021, 8:03 PM
    Hey! yeah no rush
  • t

    tdfirth

    11/16/2021, 8:03 PM
    I think it's something to do with this:
Powered by Linen
Title
t

tdfirth

11/16/2021, 8:03 PM
I think it's something to do with this:
View count: 3