add comment to explain the logic

This commit is contained in:
Jacob Overgaard
2024-04-16 10:50:12 +02:00
parent 2bb4180cf0
commit 0557dff892

View File

@@ -367,6 +367,7 @@ export class UmbAuthFlow {
this.#refreshToken = response.refreshToken;
this.#accessTokenResponse = response;
} catch (error) {
// If the token request fails, it means the refresh token is invalid, so we sign the user out.
console.error('Token request error', error);
this.signOut();
}