CodeIgniter Forums

Full Version: How consume JWT token?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In this my project,user try to login and send sms to user and return JWT token
So when user enter confirmation code and login to app and also receive new JWT token
But i need consume or destroy login JWT token until user cannot use prev token for retry login with it token

1- Login user
2- get token contain code and mobile example

3- user enter confirmation code and send with above token to controller

4- if token is OK,so login to app and create new token

there is a important problem

If user send again -2 token to controller,user can again make new token and receive
but i need destrory relate token example unset session for prevent access use to above token