• Fetch the auth session including the tokens and credentials if they are available. By default it does not refresh the auth tokens or credentials if they are loaded in storage already. You can force a refresh with { forceRefresh: true } input.

    Parameters

    Returns Promise<AuthSession>

    Promise

    Throws

    AuthError - Throws error when session information cannot be refreshed.