mirror of
https://github.com/bitwarden/browser
synced 2026-02-01 01:03:39 +00:00
Added clarified logout reason
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
export type LogoutReason =
|
||||
| "invalidGrantError"
|
||||
| "vaultTimeout"
|
||||
| "invalidSecurityStamp"
|
||||
| "logoutNotification"
|
||||
| "keyConnectorError"
|
||||
| "sessionExpired"
|
||||
| "accessTokenUnableToBeDecrypted"
|
||||
| "accountDeleted"
|
||||
| "invalidAccessToken"
|
||||
| "invalidSecurityStamp"
|
||||
| "keyConnectorError"
|
||||
| "logoutNotification"
|
||||
| "missingEmailError"
|
||||
| "refreshTokenSecureStorageRetrievalFailure"
|
||||
| "accountDeleted";
|
||||
| "setInitialPassword"
|
||||
| "sessionExpired"
|
||||
| "userInitiated"
|
||||
| "vaultTimeout";
|
||||
|
||||
@@ -1755,7 +1755,7 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
(response.status === HttpStatusCode.Unauthorized ||
|
||||
response.status === HttpStatusCode.Forbidden)
|
||||
) {
|
||||
await this.logoutCallback("sessionExpired");
|
||||
await this.logoutCallback("invalidAccessToken");
|
||||
}
|
||||
|
||||
const responseJson = await this.getJsonResponse(response);
|
||||
|
||||
Reference in New Issue
Block a user