@@ -19,6 +19,14 @@ export async function signOut(): Promise<void> {
|
||||
await Auth.signOut();
|
||||
}
|
||||
|
||||
export async function forgotPassword(username: string): Promise<void> {
|
||||
const res = await Auth.forgotPassword(username);
|
||||
}
|
||||
|
||||
export async function forgotPasswordSubmit(username: string, code: string, password: string): Promise<void> {
|
||||
await Auth.forgotPasswordSubmit(username, code, password);
|
||||
}
|
||||
|
||||
async function getAccessToken(): Promise<CognitoAccessToken | null> {
|
||||
try {
|
||||
const u = await Auth.currentSession();
|
||||
|
||||
Reference in New Issue
Block a user