Constructors

Methods

  • Returns Promise<void>

  • Fetch the auth tokens, and the temporary AWS credentials and identity if they are configured. By default it will automatically refresh expired auth tokens if a valid refresh token is present. You can force a refresh of non-expired tokens with { forceRefresh: true } input.

    Parameters

    Returns Promise<AuthSession>

    Promise of current auth session AuthSession.