Please enable JavaScript.
Coggle requires JavaScript to display documents.
Discord Linking Process - Coggle Diagram
Discord Linking Process
-
-
-
automated token refresh
When a user's Game Transfer account token needs to be refreshed after it has expired, it will do its usual process and then in the middle of that send a request out to "semblance.services/refresh-token" with the email and new token being part of the Basic Auth authorization header, the request's body will contain the expired token
2 custom tokens will be created, a custom token that is meant to match up with the current user's linked account (email and the expired token encrypted) while the other custom token will use the email and the new token as it will represent the new custom token that will replace the previous one
To ensure the given user credentials is of an account that has actually linked up with discord, it'll fetch for a user with the old custom token to see if a linked account exists
The user's linked account will finally be updated with the new custom token to ensure they're able to continue using the "Update Stats" button without any issues with the authorization not finding a linked account
-