Prompt to refresh account on error AADSTS700082 (#24423)

This commit is contained in:
Cheena Malhotra
2023-09-14 12:18:45 -07:00
committed by GitHub
parent b6a67cfde7
commit b1bc59095b
2 changed files with 7 additions and 0 deletions

View File

@@ -310,6 +310,7 @@ export abstract class AzureAuth implements vscode.Disposable {
|| error.errorMessage.includes(Constants.AADSTS50078)
|| error.errorMessage.includes(Constants.AADSTS50085)
|| error.errorMessage.includes(Constants.AADSTS50089)
|| error.errorMessage.includes(Constants.AADSTS700082)
|| error.errorMessage.includes(Constants.AADSTS700084);
}

View File

@@ -112,6 +112,12 @@ export const AADSTS50085 = 'AADSTS50085';
* or are revoked by the user or an admin. The app will request a new login from the user.
*/
export const AADSTS50089 = 'AADSTS50089';
/**
* ExpiredOrRevokedGrantInactiveToken - The refresh token has expired due to inactivity.
* The token was issued on {issueDate} and was inactive for {time}. Expected part of the token lifecycle -
* the user went an extended period of time without using the application, so the token was expired when the app attempted to refresh it.
*/
export const AADSTS700082 = 'AADSTS700082';
/**
* The refresh token was issued to a single page app (SPA), and therefore has a fixed, limited lifetime of {time}, which can't be extended.
* It is now expired and a new sign in request must be sent by the SPA to the sign in page. The token was issued on {issueDate}.