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