I have checked the documentation but their is no log out end point on the REST API section. How do i use API action to achive this ?
If you use the REST API externally, there is no need to logout in REST API. Each request is authenticated by JWT and login status is not persisted. If you use the API inside your app, the JWT is automatically sent, so you feel like it is persisted.
This makes sense . I think its better to find a way to clear the token from the client side if there is a log out route , I’m using Vue js