Skip to content

Commit

Permalink
run formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LXIF committed Nov 13, 2024
1 parent 8657ef0 commit d9cf8d4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/frontend/src/flows/authorize/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -224,7 +222,7 @@ const authenticate = async (
maxTimeToLive: authContext.authRequest.maxTimeToLive,
})
);

if ("error" in result) {
return {
kind: "failure",
Expand All @@ -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;

Expand Down

0 comments on commit d9cf8d4

Please sign in to comment.