Skip to content

Commit

Permalink
chore: alphabetization
Browse files Browse the repository at this point in the history
  • Loading branch information
jjarvisp committed Feb 21, 2025
1 parent ba0aa21 commit d9ea3a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ui/src/helpers/authenticator/facade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type AuthenticatorValidationErrors = ValidationError;
export type AuthStatus = 'configuring' | 'authenticated' | 'unauthenticated';

interface AuthenticatorServiceContextFacade {
allowedMfaTypes: AuthMFAType[] | undefined;
authStatus: AuthStatus;
challengeName: ChallengeName | undefined;
codeDeliveryDetails: V5CodeDeliveryDetails;
Expand All @@ -67,7 +68,6 @@ interface AuthenticatorServiceContextFacade {
user: AuthUser;
username: string;
validationErrors: AuthenticatorValidationErrors;
allowedMfaTypes: AuthMFAType[] | undefined;
}

type SendEventAlias =
Expand All @@ -93,6 +93,7 @@ export interface AuthenticatorServiceFacade
AuthenticatorServiceContextFacade {}

interface NextAuthenticatorServiceContextFacade {
allowedMfaTypes: AuthMFAType[] | undefined;
challengeName: ChallengeName | undefined;
codeDeliveryDetails: V5CodeDeliveryDetails | undefined;
errorMessage: string | undefined;
Expand All @@ -103,7 +104,6 @@ interface NextAuthenticatorServiceContextFacade {
totpSecretCode: string | undefined;
username: string | undefined;
unverifiedUserAttributes: UnverifiedUserAttributes | undefined;
allowedMfaTypes: AuthMFAType[] | undefined;
}

interface NextAuthenticatorSendEventAliases
Expand Down Expand Up @@ -249,13 +249,13 @@ export const getNextServiceContextFacade = (
): NextAuthenticatorServiceContextFacade => {
const actorContext = (getActorContext(state) ?? {}) as AuthActorContext;
const {
allowedMfaTypes,
challengeName,
codeDeliveryDetails,
remoteError: errorMessage,
totpSecretCode,
unverifiedUserAttributes,
username,
allowedMfaTypes,
} = actorContext;

const { socialProviders: federatedProviders, loginMechanisms } =
Expand All @@ -270,6 +270,7 @@ export const getNextServiceContextFacade = (
const route = getRoute(state, actorState) as AuthenticatorRoute;

return {
allowedMfaTypes,
challengeName,
codeDeliveryDetails,
errorMessage,
Expand All @@ -280,7 +281,6 @@ export const getNextServiceContextFacade = (
totpSecretCode,
unverifiedUserAttributes,
username,
allowedMfaTypes,
};
};

Expand Down

0 comments on commit d9ea3a6

Please sign in to comment.