12 – Store Refresh Tokens in Redis



12 – Store Refresh Tokens in Redis

12 - Store Refresh Tokens in Redis

In this Golang Account Application tutorial, we will establish a connection to a Redis container running within a docker-compose development environment. We’ll establish a connection to this in-memory database to enable us to create a white-list of valid jwt refresh tokens. This will give us the ability to delete a user’s refresh tokens if they want to, for example, log out of all devices or reset their password.

We’ll also use Postman to signup a new user, and then use the redis-cli to check that a proper valid token is added to our Redis cache.

For the written tutorial series, check out:
https://dev.to/jacobsngoodwin/series/9052

All code for this tutorial can be found on Github! We made a lot of book-keeping changes last time, so you may consider checking out the lesson-11 branch to make sure you have all of those changes!
https://github.com/JacobSNGoodwin/memrizr

Comments are closed.