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

    rp

    10/19/2021, 8:57 PM
    See this too: https://supertokens.io/docs/session/common-customizations/sessions/anti-csrf
  • u

    user

    10/19/2021, 9:16 PM
    ok this makes more sense thanks
  • u

    user

    12/03/2021, 4:55 PM
    Guys, I have verified that some APIs define a refresh token and an expiration time for the access token. However, the access token is not updated after this expiration time. Is there any possible reason for this to happen? Application problem?
  • r

    rp

    12/03/2021, 4:56 PM
    Can you please tell me which SDKs of ours you are using?
  • u

    user

    12/03/2021, 5:00 PM
    It is not about specially supertokens, but any API
  • r

    rp

    12/03/2021, 5:01 PM
    It will be very difficult for me to help about some other system. Cause well.. the range of possible errors is infinite
  • n

    nim4ze

    12/12/2021, 10:51 PM
    Hi, quick Q regarding log4j and supertokens core as that’s written in Java - is it using log4j?
  • r

    rp

    12/13/2021, 1:03 AM
    Hey! No. We are using logback. So not affected by the exploit on log4j 🙂
  • n

    nim4ze

    12/13/2021, 6:40 AM
    Nice 🙂
  • u

    user

    12/31/2021, 3:40 PM
    Wassup guys, I read the super token article about refresh tokens and was wondering for a more less robust explanation of the process?
  • r

    rp

    12/31/2021, 3:54 PM
    Hey @User we can answer this question in a few days.
  • r

    rp

    01/03/2022, 5:31 AM
    @User , the way our sessions work is described briefly here: https://supertokens.io/docs/session/introduction#overview-of-session-flow
  • g

    gaurang7

    01/03/2022, 2:30 PM
    hey, my signout request is getting cancelled. I am seeing that in my network tab. However, the signin works properly. import {signOut} from "..recipe/emailpassword" signOut.then(...
  • r

    rp

    01/03/2022, 2:30 PM
    Are you doing a page redirect before the signOut function has finished?
  • g

    gaurang7

    01/03/2022, 2:32 PM
    yes, as mentioned in the docs.
  • r

    rp

    01/03/2022, 2:33 PM
    You need to redirect the user in the then(… block
  • r

    rp

    01/03/2022, 2:33 PM
    Or you need to add an await when u call signOut
  • g

    gaurang7

    01/03/2022, 2:35 PM
    Yeah, doing the same. I am wondering if the signout function is succeasfully resolving the promise, as the http request for signout is cancelled. ?
  • r

    rp

    01/03/2022, 2:35 PM
    It normally never cancels. That’s strange
  • r

    rp

    01/03/2022, 2:36 PM
    The only time it gets cancelled is if the page is redirecting
  • r

    rp

    01/03/2022, 2:36 PM
    Maybe try and remove the redirect and see what happens
  • r

    rp

    01/03/2022, 2:36 PM
    As in does it still cancel?
  • g

    gaurang7

    01/03/2022, 2:36 PM
    May be, it some css I am importing and using on the button.
  • r

    rp

    01/03/2022, 2:36 PM
    Maybe also post your code snippet here
  • g

    gaurang7

    01/03/2022, 3:05 PM
    Hey the problem is with button html tag. As I started using bootstrap, copy pasted some code for styled buttons. I observed on click of the button, the page refreshes. That caused the issue. Now I replaced that with 'a' tag & things are back to normal.
  • r

    rp

    01/03/2022, 3:10 PM
    sounds good!
  • j

    Jake2222

    02/13/2022, 8:10 PM
    Hey all, using the email/password recipe how do you all handle multiple failed login attempts by users? When I've implemented custom auth in the past I just keep track of login attempts, IP's, etc. in my own database and flag or timeout based on rules I create. Does Supertokens have any settings or default for handling of failed login attempts?
  • r

    rp

    02/14/2022, 4:22 AM
    hey @User we don't handle failed login attempts in any special was at the moment. But using our overrides feature, you can implement the flow you explained above (or any other flow)!
  • j

    Jake2222

    02/14/2022, 5:55 AM
    thanks!
  • j

    joy97

    04/17/2022, 9:45 AM
    At my org I had implemented user blocking in an exponential backoff fashion. So basically for the first 5 failed attempts user waits for let's say 5 mins. Then after every 3 failed attempts the time just increases exponentially and it gets reset after a day.
Powered by Linen
Title
j

joy97

04/17/2022, 9:45 AM
At my org I had implemented user blocking in an exponential backoff fashion. So basically for the first 5 failed attempts user waits for let's say 5 mins. Then after every 3 failed attempts the time just increases exponentially and it gets reset after a day.
View count: 1