Join Discord
Powered by
does anyone know how to fix the browser alert I ge...
# help
w
wario
09/25/2021, 6:11 PM
does anyone know how to fix the browser alert I get saying "JWT expired"? I followed a react auth tutorial and not sure what is causing this
s
silentworks
09/26/2021, 9:48 AM
These should auto refresh if the user is still using the app, they only expire if the app sits idle for the time of the expiry on the token.
m
MDobs
09/26/2021, 10:01 AM
by default the expiration is set to 3600seconds (1h) You can capture this and re-authenticate the user or refresh the token
w
wario
09/26/2021, 5:10 PM
@User
Ohh thank you that is super helpful! I didn't know about the onUnauthenticated event 🙏
wario
09/26/2021, 5:11 PM
OK got it, thanks for explaining!!
Previous
Next