• Ensure that we have a valid session with no particular scopes.

    Parameters

    • env: ProcessEnv = process.env

      Optional environment variables to use.

    • options: EnsureAuthenticatedAdditionalOptions = {}

      Optional extra options to use.

    Returns Promise<{ userId: string }>

    The user ID.