From d9cf8d4c08ae9d81e18cf9c8413ecb34febf1344 Mon Sep 17 00:00:00 2001 From: Andri Schatz Date: Wed, 13 Nov 2024 16:43:03 +0100 Subject: [PATCH] run formatting --- src/frontend/src/flows/authorize/index.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/frontend/src/flows/authorize/index.ts b/src/frontend/src/flows/authorize/index.ts index 824acaf0dd..303446a933 100644 --- a/src/frontend/src/flows/authorize/index.ts +++ b/src/frontend/src/flows/authorize/index.ts @@ -210,11 +210,9 @@ const authenticate = async ( autoSelectionIdentity: autoSelectionIdentity, }); - // at this point, derivationOrigin is either validated or undefined const derivationOrigin = - authContext.authRequest.derivationOrigin ?? authContext.requestOrigin; - + authContext.authRequest.derivationOrigin ?? authContext.requestOrigin; const result = await withLoader(() => fetchDelegation({ @@ -224,7 +222,7 @@ const authenticate = async ( maxTimeToLive: authContext.authRequest.maxTimeToLive, }) ); - + if ("error" in result) { return { kind: "failure", @@ -240,8 +238,8 @@ const authenticate = async ( await recoveryWizard(authSuccess.userNumber, authSuccess.connection); } - // Ignore the response of committing the metadata because it's not crucial. - void authSuccess.connection.commitMetadata(); + // Ignore the response of committing the metadata because it's not crucial. + void authSuccess.connection.commitMetadata(); const [userKey, parsed_signed_delegation] = result;