@aws-amplify/auth
Version:
Auth category of aws-amplify
10 lines (9 loc) • 375 B
TypeScript
import { AmplifyContext } from '@aws-amplify/core';
export declare function deleteUser(ctx: AmplifyContext): Promise<void>;
/**
* Deletes a user from the user pool while authenticated.
*
* @throws - {@link DeleteUserException}
* @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
*/
export declare function deleteUser(): Promise<void>;