mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
fix(auth): [PM-18639] Resend Admin Auth Request After Previous Denial (#13574)
This commit is contained in:
@@ -16,7 +16,7 @@ export class DefaultAuthRequestApiService implements AuthRequestApiService {
|
|||||||
const path = `/auth-requests/${requestId}`;
|
const path = `/auth-requests/${requestId}`;
|
||||||
const response = await this.apiService.send("GET", path, null, true, true);
|
const response = await this.apiService.send("GET", path, null, true, true);
|
||||||
|
|
||||||
return response;
|
return new AuthRequestResponse(response);
|
||||||
} catch (e: unknown) {
|
} catch (e: unknown) {
|
||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
throw e;
|
throw e;
|
||||||
@@ -28,7 +28,7 @@ export class DefaultAuthRequestApiService implements AuthRequestApiService {
|
|||||||
const path = `/auth-requests/${requestId}/response?code=${accessCode}`;
|
const path = `/auth-requests/${requestId}/response?code=${accessCode}`;
|
||||||
const response = await this.apiService.send("GET", path, null, false, true);
|
const response = await this.apiService.send("GET", path, null, false, true);
|
||||||
|
|
||||||
return response;
|
return new AuthRequestResponse(response);
|
||||||
} catch (e: unknown) {
|
} catch (e: unknown) {
|
||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
throw e;
|
throw e;
|
||||||
@@ -45,7 +45,7 @@ export class DefaultAuthRequestApiService implements AuthRequestApiService {
|
|||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
|
|
||||||
return response;
|
return new AuthRequestResponse(response);
|
||||||
} catch (e: unknown) {
|
} catch (e: unknown) {
|
||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
throw e;
|
throw e;
|
||||||
@@ -56,7 +56,7 @@ export class DefaultAuthRequestApiService implements AuthRequestApiService {
|
|||||||
try {
|
try {
|
||||||
const response = await this.apiService.send("POST", "/auth-requests/", request, false, true);
|
const response = await this.apiService.send("POST", "/auth-requests/", request, false, true);
|
||||||
|
|
||||||
return response;
|
return new AuthRequestResponse(response);
|
||||||
} catch (e: unknown) {
|
} catch (e: unknown) {
|
||||||
this.logService.error(e);
|
this.logService.error(e);
|
||||||
throw e;
|
throw e;
|
||||||
|
|||||||
Reference in New Issue
Block a user