Skip to content

Refresh Access Token Authentication Implementation Example using Go (gin), React, MongoDB, JWT and Argon2ID.

License

Notifications You must be signed in to change notification settings

zekroTutorials/refresh-tokens

Repository files navigation

Refresh Access Token Authorization

This repository represents an example implementation of the refresh access token authorization concept as it is described here in the following article.
https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them

The Concept

I've created a little sequence diagram to visualize the authentication and request flow of the refresh access token authentication.

Derived from the concept, this is the structure of this particular implementation.

Repository Setup

If you want to try the implementation yourself, you can clone the repository and set up an environment using docker and docker-compose.

$ git clone --depth 1 --branch master https://github.com/zekroTutorials/refresh-tokens.git
$ cd refresh-tokens
$ docker-compose build
$ docker-compose up -d

Then, navigate to http://localhost:80 on your system to access the web app.

Resources

About

Refresh Access Token Authentication Implementation Example using Go (gin), React, MongoDB, JWT and Argon2ID.

Resources

License

Stars

Watchers

Forks