How to destroy JWT Tokens on logout?
I am using jwt plugin and strategy in hapijs. I am able to create jwt token while login user and authenticate other API using the same token through 'jwt' strategy. I am setting the token in 'request.state.USER_SESSION' as a cookie where USER_SESSION is token name. Also I am not saving these token in database. But how can I destroy jwt token at the time of logout. Please suggest a way. pedrofb The JWT is stored on browser, so remove the token deleting the cookie at client side If you need also to invalidate the token from server side before its expiration time, for example account deleted