Does strapi has a logout endpoint?

I’m wondering if Strapi has an endpoint for logout?

No, if you are using the default authentication provider which returns a token, then the client application deals with storing the token for further requests. Typically, the client has a “logout” function which would then get rid of the currently stored token and make the user login again to obtain a token.


Can I interfere and make a route in strapi back-end that destroys that token?

Hi @Wahib_Abdou
Check: Is there away to revoke user's jwt token? - #2 by DMehaffy

1 Like

No, the token only exists on the client. If you want to disable the user then you will need to do that in the admin. I am curious why you want to destroy the token?

for security reasons

1 Like