Skip to content

Commit

Permalink
Expose MfaCodeInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
danielholmes committed May 22, 2024
1 parent 89645a2 commit 77feab7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dhau/react-aws-cognito",
"version": "0.0.22",
"version": "0.0.23",
"type": "module",
"sideEffects": false,
"description": "Context and hooks to manage an AWS Cognito authenticated user in React.",
Expand Down
1 change: 1 addition & 0 deletions src/model/get-mfa-code-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ async function getMfaCodeInfo(
});
}

export type { MfaCodeInfo };
export default getMfaCodeInfo;
4 changes: 2 additions & 2 deletions src/signed-in-auth-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import resendEmailAddressVerification from "./model/resend-email-address-verific
import verifyEmailAddress from "./model/verify-email-address.ts";
import enableMfa from "./model/enable-mfa.ts";
import disableMfa from "./model/disable-mfa.ts";
import getMfaCodeInfo from "./model/get-mfa-code-info.ts";
import getMfaCodeInfo, { MfaCodeInfo } from "./model/get-mfa-code-info.ts";
import changePassword from "./model/change-password.ts";
import { UserParser } from "./model/get-current-user.ts";

Expand Down Expand Up @@ -79,5 +79,5 @@ type SignedInAuthState<TUser> = ReturnType<
typeof createSignedInAuthState<TUser>
>;

export type { SignedInAuthState };
export type { MfaCodeInfo, SignedInAuthState };
export { createSignedInAuthState };
4 changes: 2 additions & 2 deletions src/state.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SignedInAuthState } from "./signed-in-auth-state.ts";
import { SignedInAuthState, MfaCodeInfo } from "./signed-in-auth-state.ts";
import { SignedOutAuthState } from "./signed-out-auth-state.ts";

type LoadingAuthState = {
Expand All @@ -22,4 +22,4 @@ type AuthState<TUser> =
| SignedInAuthState<TUser>
| SignedOutAuthState<TUser>;

export type { AuthState, SignUpVariables };
export type { MfaCodeInfo, AuthState, SignUpVariables };

0 comments on commit 77feab7

Please sign in to comment.