From 359007ab8d3264262920b33cebc71328958d55a0 Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Wed, 26 Feb 2025 11:44:41 -0800 Subject: [PATCH] fix(auth): [PM-18639] Resend Admin Auth Request After Previous Denial (#13574) --- .../services/auth-request/auth-request-api.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/auth/src/common/services/auth-request/auth-request-api.service.ts b/libs/auth/src/common/services/auth-request/auth-request-api.service.ts index 180e007939..b5fc72588a 100644 --- a/libs/auth/src/common/services/auth-request/auth-request-api.service.ts +++ b/libs/auth/src/common/services/auth-request/auth-request-api.service.ts @@ -16,7 +16,7 @@ export class DefaultAuthRequestApiService implements AuthRequestApiService { const path = `/auth-requests/${requestId}`; const response = await this.apiService.send("GET", path, null, true, true); - return response; + return new AuthRequestResponse(response); } catch (e: unknown) { this.logService.error(e); throw e; @@ -28,7 +28,7 @@ export class DefaultAuthRequestApiService implements AuthRequestApiService { const path = `/auth-requests/${requestId}/response?code=${accessCode}`; const response = await this.apiService.send("GET", path, null, false, true); - return response; + return new AuthRequestResponse(response); } catch (e: unknown) { this.logService.error(e); throw e; @@ -45,7 +45,7 @@ export class DefaultAuthRequestApiService implements AuthRequestApiService { true, ); - return response; + return new AuthRequestResponse(response); } catch (e: unknown) { this.logService.error(e); throw e; @@ -56,7 +56,7 @@ export class DefaultAuthRequestApiService implements AuthRequestApiService { try { const response = await this.apiService.send("POST", "/auth-requests/", request, false, true); - return response; + return new AuthRequestResponse(response); } catch (e: unknown) { this.logService.error(e); throw e;