Amplify JS API Documentation
    Preparing search index...

    Function signInWithRedirect

    • Parameters

      Returns Promise<void>

    • Signs in a user with OAuth. Redirects the application to an Identity Provider.

      Parameters

      • Optionalinput: AuthSignInWithRedirectInput

        The SignInWithRedirectInput object, if empty it will redirect to Cognito HostedUI

      Returns Promise<void>

      AuthTokenConfigException - Thrown when the user pool config is invalid.

      OAuthNotConfigureException - Thrown when the oauth config is invalid.