mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
handle server errors for attachment save
This commit is contained in:
@@ -366,8 +366,7 @@ export default class ApiService {
|
||||
// Helpers
|
||||
|
||||
private async handleError(response: Response, tokenError: boolean): Promise<ErrorResponse> {
|
||||
if (response != null && (tokenError && response.status === 400) ||
|
||||
response.status === 401 || response.status === 403) {
|
||||
if ((tokenError && response.status === 400) || response.status === 401 || response.status === 403) {
|
||||
if (this.logoutCallback) {
|
||||
this.logoutCallback(true);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user