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

    user

    05/02/2020, 4:14 PM
    why did u join?
  • r

    rp

    05/02/2020, 4:14 PM
    I made this server.
  • u

    user

    05/02/2020, 4:15 PM
    oh haha sorry didn't know
  • r

    rp

    05/02/2020, 4:15 PM
    no worries. It's a server meant for answering questions about our product - supertokens.io
  • u

    user

    05/02/2020, 4:16 PM
    oh well i guess i am,at wrong server then
  • r

    rp

    05/07/2020, 7:44 AM
    hi @User !
  • r

    rp

    05/08/2020, 9:25 AM
    hey @User !
  • u

    user

    05/08/2020, 9:45 AM
    Hi everyone. I have followed the whole setup docs and launched the SuperTokens server. But my Node Js backend does not seem to get any response while creating the session token.
  • r

    rp

    05/08/2020, 9:46 AM
    hey! thanks for trying it out. What is the error being thrown by the
    createNewSession
    function?
  • u

    user

    05/08/2020, 9:56 AM
    seems like the UserId can only be a string. I was using an integer
  • r

    rp

    05/08/2020, 9:56 AM
    yea. it must be a
    string
  • u

    user

    05/08/2020, 10:24 AM
    I have a question (a critique one I guess). "JWT sign-in Key Rotations" is supposed to be done in the middleware auth validation right? (I am currently using Node Js lib)
  • r

    rp

    05/08/2020, 10:32 AM
    the key is stored in the database. We use RSA keys for JWT, which means, a private key is used to sign and create JWT, and a public key is used to verify it. The nodeJS SDK get's only the public key from the service for purpose of verification. Creating a new token, or changing the signing keys happens in the service side. So if the signing key is changed, the NodeJS sdk will still have the older public key. Any new access token that comes in will fail invalidation. The SDK will then pass on the access token to the service to verify (which will succeed cause it has the latest JWT key), and in response, the NodeJS sdk will get the new public key. Also, JWT signing Key Rotations is a pro feature only.
  • r

    rp

    05/08/2020, 10:33 AM
    I'm not entirely sure I answered your question.. If not, please feel free to clarify
  • u

    user

    05/08/2020, 10:39 AM
    Thanks. The answer is very clear. It means if I had to enable Token theft detection feature, each subsequent request that requires SuperTokens middleware validation, a database call is to be made? Am I correct?
  • r

    rp

    05/08/2020, 10:42 AM
    Token theft detection has nothing to do with JWT signing key. Token theft detection is already enabled. > each subsequent request that requires SuperTokens middleware validation, a database call is to be made? No. Token theft detection happens when refreshing a session. Not validating a session.
  • r

    rp

    05/08/2020, 10:42 AM
    I'd recommend you see this: https://supertokens.io/blog/the-best-way-to-securely-manage-user-sessions
  • u

    user

    05/08/2020, 10:49 AM
    Yes I understand that. I tied your answer with subsequent questions 🤦‍♂️. I am just trying to evaluate why I would use SuperToken while developing Laravel apps. Your solution is great as it separates the session management from the other app logic. My main concern is why the solution relies on JWT .
  • r

    rp

    05/08/2020, 10:50 AM
    Thank you! We rely on JWTs cause that way, for most API calls, your session verification can happen in < 1 MS as opposed to 50 MS.
  • r

    rp

    05/08/2020, 10:50 AM
    thereby making your APIs faster!
  • u

    user

    05/08/2020, 10:51 AM
    Once I add the blacklisting feature, will that just transform the solution from stateless to stateful authentication because of database calls? (correct me if I am wrong, I am still going through the codebase)
  • r

    rp

    05/08/2020, 10:55 AM
    Yup. That is correct. However, what we also plan on doing is that you can add blacklisting for certain APIs. Like all POST APIs can check the blacklist, whilst all GET APIs need not do that. This means that your GET APIs (which are most frequently called) will be super fast, whilst your POST APIs will get the benefit of immediate revocation. As a note, we also plan on supporting opaque access tokens. We just started off with JWTs since that's what the majority of the people we had spoken to wanted.
  • u

    user

    05/08/2020, 11:00 AM
    Alright. Thank you for your time & reply to my queries @User .
  • r

    rp

    05/08/2020, 11:01 AM
    Cheers! If you have any more questions, please feel free to ping me here.
  • r

    rp

    05/16/2020, 7:17 PM
    hey @User
  • r

    rp

    05/30/2020, 1:58 PM
    Hey @User !
  • r

    rp

    06/07/2020, 10:35 AM
    hey @User
  • u

    user

    06/07/2020, 10:36 AM
    hi
  • r

    rp

    06/07/2020, 10:36 AM
    what brings you to our server?
  • u

    user

    06/07/2020, 10:37 AM
    Haha from this article "All you need to know about user session security" Thank a lot!
Powered by Linen
Title
u

user

06/07/2020, 10:37 AM
Haha from this article "All you need to know about user session security" Thank a lot!
View count: 2