diff --git a/packages/client/lib/AuthorizationCodeClient.ts b/packages/client/lib/AuthorizationCodeClient.ts index f3b9d129..80817660 100644 --- a/packages/client/lib/AuthorizationCodeClient.ts +++ b/packages/client/lib/AuthorizationCodeClient.ts @@ -114,7 +114,7 @@ export const createAuthorizationRequestUrl = async ({ const client_id = clientId ?? authorizationRequest.clientId; // Authorization server metadata takes precedence - const authorizationMetadata = endpointMetadata.authorizationServerMetadata ?? endpointMetadata.credentialIssuerMetadata + const authorizationMetadata = endpointMetadata.authorizationServerMetadata ?? endpointMetadata.credentialIssuerMetadata; let { authorizationDetails } = authorizationRequest; const parMode = authorizationMetadata?.require_pushed_authorization_requests @@ -182,7 +182,6 @@ export const createAuthorizationRequestUrl = async ({ } const parEndpoint = authorizationMetadata?.pushed_authorization_request_endpoint; - let queryObj: Record | PushedAuthorizationResponse = { response_type: ResponseType.AUTH_CODE, ...(!pkce.disabled && { diff --git a/packages/client/lib/functions/notifications.ts b/packages/client/lib/functions/notifications.ts index da81d102..19db5642 100644 --- a/packages/client/lib/functions/notifications.ts +++ b/packages/client/lib/functions/notifications.ts @@ -19,12 +19,10 @@ export async function sendNotification( const error = response.errorBody?.error !== undefined; const result = { error, - response: error ? await response.errorBody?.json() : undefined, + response: error ? response.errorBody : undefined, }; if (error) { - LOG.warning( - `Notification endpoint returned an error for event '${request.event}' and id ${request.notification_id}: ${await response.errorBody?.json()}`, - ); + LOG.warning(`Notification endpoint returned an error for event '${request.event}' and id ${request.notification_id}: ${response.errorBody}`); } else { LOG.debug(`Notification endpoint returned success for event '${request.event}' and id ${request.notification_id}`); }