• Fetch the auth session including the tokens and credentials if they are available. 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

    Throws

    AuthError - Throws error when session information cannot be refreshed.