Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • fetchWithAuth(supabaseKey: string, getAccessToken: (() => Promise<null | string>), customFetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)): ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)
  • Parameters

    • supabaseKey: string
    • getAccessToken: (() => Promise<null | string>)
        • (): Promise<null | string>
        • Returns Promise<null | string>

    • Optional customFetch: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)
        • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
        • Parameters

          • input: RequestInfo | URL
          • Optional init: RequestInit

          Returns Promise<Response>

    Returns ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optional init: RequestInit

        Returns Promise<Response>

  • resolveFetch(customFetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)): ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)
  • Parameters

    • Optional customFetch: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)
        • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
        • Parameters

          • input: RequestInfo | URL
          • Optional init: RequestInit

          Returns Promise<Response>

    Returns ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)

      • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
      • Parameters

        • input: RequestInfo | URL
        • Optional init: RequestInit

        Returns Promise<Response>

  • resolveHeadersConstructor(): any

Generated using TypeDoc