1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

fix(auth): [PM-18639] Resend Admin Auth Request After Previous Denial (#13574)

This commit is contained in:
rr-bw
2025-02-26 11:44:41 -08:00
committed by GitHub
parent 19326609e3
commit 359007ab8d

View File

@@ -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;