Hi i am getting an error 401 after 1 hour with a J...
# help
r
Hi i am getting an error 401 after 1 hour with a JWT token error, i have seen some users in the forums who experienced the same issue but not sure what is the right solution?
s
The token has expired, are you using the js client library?
r
not sure what that means i am using Vue and i am using the user auth from Supabase. users are logged in with their email confirmation
sorry i am a bit amateur 😦
s
Ok so this normally happens when the user has left their account idle for an hour or more, if they are actively using the library it will refresh the token automatically
Make sure you are using the latest version of the supabase-js client library
r
yes, that is exactly what is happening when they leave idle the computer,
is there any way to have a backup plan to avoid this token issue or do i need to refresh in my app?
s
I'm almost certain this has been fixed in the latest version of the supabase-js library, well it was fixed quite a few versions ago. I haven't had this issue for months now.