First Step

First, our client permission to access a sma users ressources. Therefore, we request permission.

Second Step

Now that the user has given us permission, we can exchange once the code for an access token and refresh token. Use this step to obtain an access and refresh token

Third Step

Now that we exchanged the code for tokens, we save them. Every 5 Minutes, we use the refresh token to request a new access token. Use this step to get a new access token.