@health-samurai/aidbox-client
    Preparing search index...

    Class BrowserAuthProvider

    Implements

    Index

    Constructors

    Methods

    • Checks if the session is already authenticated, and if not, redirects to the login page.

      Returns Promise<void>

    • A thin wrapper around fetch function. Checks if the client is authorized to perform a request, and redirects to a login page if not.

      Accepts the same arguments as fetch.

      Parameters

      • input: RequestInfo | URL
      • Optionalinit: RequestInit

      Returns Promise<Response>