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.
2 Likes
Can I interfere and make a route in strapi back-end that destroys that token?
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