UNPKG

@light-auth/core

Version:

light auth core framework agnostic, using arctic

16 lines (15 loc) 537 B
import { type LightAuthConfig } from "../models"; /** * this function is used to make a request to the light auth server * it can be done from the server side or the client side * * it will use the router to get the url and the headers (if server side) */ export declare function internalFetch<T extends Record<string, any> | string | Blob>(args: { config: LightAuthConfig<any, any>; endpoint: string; method: string; body?: any; headers?: Headers; [key: string]: unknown; }): Promise<T | null | undefined>;