@aws-amplify/auth
Version:
Auth category of aws-amplify
15 lines (14 loc) • 819 B
TypeScript
import { AmplifyContext } from '@aws-amplify/core';
import { SignInWithUserPasswordInput, SignInWithUserPasswordOutput } from '../types';
/**
* Signs a user in using USER_PASSWORD_AUTH AuthFlowType
*
* @param ctx - The AmplifyContext
* @param input - The SignInWithUserPasswordInput object
* @returns SignInWithUserPasswordOutput
* @throws service: {@link InitiateAuthException } - Cognito service error thrown during the sign-in process.
* @throws validation: {@link AuthValidationErrorCode } - Validation errors thrown when either username or password
* are not defined.
* @throws AuthTokenConfigException - Thrown when the token provider config is invalid.
*/
export declare function signInWithUserPassword(ctx: AmplifyContext, input: SignInWithUserPasswordInput): Promise<SignInWithUserPasswordOutput>;