Skip to content

Add MS token refresh functions#8

Merged
TheFlash787 merged 2 commits intoModRealms:masterfrom
AlexandraIsabel:fix-ms-auth
Jan 20, 2022
Merged

Add MS token refresh functions#8
TheFlash787 merged 2 commits intoModRealms:masterfrom
AlexandraIsabel:fix-ms-auth

Conversation

@AlexandraIsabel
Copy link
Copy Markdown

This PR adds the proper functionality and fixes existing functionality for refreshing of MS Access tokens and refresh tokens. This PR also adds handling for when none of the available tokens are valid. Should resolve some of the issues that have been reported to us by players.

Signed-off-by: Alexandra Isabel Galderisi Alexandra.Galderisi@outlook.com

This should fix the issues with tokens not refreshing properly.

Signed-off-by: Alexandra Isabel Galderisi <Alexandra.Galderisi@outlook.com>
The launcher will now refresh the refresh_token at every access token
refresh. In the case of an invalid refresh token, the launcher will now
attempt to bring the user back through the auth code login flow to get
proper grant tokens.

Signed-off-by: Alexandra Isabel Galderisi <Alexandra.Galderisi@outlook.com>
@TheFlash787 TheFlash787 merged commit 13eb214 into ModRealms:master Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants