Functions
fetchWithAuth
- 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
- 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
- resolveHeadersConstructor(): any