Laravel / vuejs JWT token

Viewed 24

I am having a problem.

  I am implementing a user management function. The administrator will manage the customer's account.  

In this case, a client is using the system, and the administrator blocks that client. 

How to remove the guest JWT token to redirect their screen to a screen log in? 

Thank you!

1 Answers

You can invalidate the token first then use route middleware for protecting routes. Take a look at this link, maybe it can be an inspiration for you to invalidate tokens. Invalidating JSON Web Tokens

Related