UNPKG

549 BTypeScriptView Raw
1import '../utils/oauth/enableOAuthListener';
2import { SignInWithRedirectInput } from '../types';
3/**
4 * Signs in a user with OAuth. Redirects the application to an Identity Provider.
5 *
6 * @param input - The SignInWithRedirectInput object, if empty it will redirect to Cognito HostedUI
7 *
8 * @throws AuthTokenConfigException - Thrown when the user pool config is invalid.
9 * @throws OAuthNotConfigureException - Thrown when the oauth config is invalid.
10 */
11export declare function signInWithRedirect(input?: SignInWithRedirectInput): Promise<void>;