Amplify JS API Documentation
    Preparing search index...

    Function getCurrentUser

    • Parameters

      Returns Promise<AuthUser>

    • Gets the current user from the idToken.

      Returns Promise<AuthUser>

      GetCurrentUserOutput

      • InitiateAuthException - Thrown when the service fails to refresh the tokens.

      AuthTokenConfigException - Thrown when the token provider config is invalid.