clerk / javascript

Official Javascript repository for Clerk authentication
https://clerk.com
MIT License
1.04k stars 235 forks source link

Sign-out issue #954

Closed tasos77 closed 1 year ago

tasos77 commented 1 year ago

Hello there , I'm using @clerk/clerk-js : ^4.27.2 in my nuxt3 project and i have an issue when i try to use signOut function. So when i want to logout a user from my app , I try to run await window.Clerk.signOut(); then redirect to login page but every time after that my console fills with a certain error :

Uncaught (in promise) Error: ClerkJS: Token refresh failed (error='[Error] Message: Status:401 Serialized errors: {"code":"signed_out","message":"Signed out","longMessage":"You are signed out","meta":{}}')

Am I missing something?

dimkl commented 1 year ago

Hello @tasos77 . Thank you for using Clerk and for reporting this issue. Could you provide a github template or repository to reproduce and investigate the issue ?

dimkl commented 1 year ago

Also please prefer using the New issue / 🐛 Issue Report template of Github for reporting bugs in the future. It will allow us to investigate and resolve your issue faster. Thank you :).

tasos77 commented 1 year ago

Sr for the waiting, i solved the issue by globalize the clerk obj using nuxt3 plugin provide attr