Skip to content

Commit

Permalink
feat: add missing hook export
Browse files Browse the repository at this point in the history
  • Loading branch information
lewtakm committed Feb 18, 2021
1 parent 5fe9737 commit 6e4cf3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useSetNewPassword.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Auth } from '@aws-amplify/auth';

export interface SseSetNewPasswordProps {
export interface SeSetNewPasswordProps {
onSuccess?: (values: any) => Promise<void>;
successMsg?: string;
}
Expand All @@ -11,7 +11,7 @@ interface NewPasswordProps {
password: string;
}

export const useSetNewPassword = ({ onSuccess, successMsg }: SseSetNewPasswordProps = {}): ((
export const useSetNewPassword = ({ onSuccess, successMsg }: SeSetNewPasswordProps = {}): ((
values: NewPasswordProps,
) => Promise<string | undefined>) => async ({ username, code, password }) => {
return Auth.forgotPasswordSubmit(username.trim().toLowerCase(), code, password).then(
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export { useSnackbar } from './hooks/useSnackbar';
export { useRequestConfirmationCode } from './hooks/useRequestConfirmationCode';
export { useConfirmSignupCode } from './hooks/useConfirmSignupCode';
export { useRequestResetCode } from './hooks/useRequestResetCode';
export { useSetNewPassword } from './hooks/useSetNewPassword';
export { PageLoading } from './components/PageLoading/PageLoading';
export { Card } from './components/Card/Card';
export { Form } from './components/Form/Form';
Expand Down

0 comments on commit 6e4cf3c

Please sign in to comment.