UNPKG

@mvp-factory/holy-auth-firebase

Version:

Firebase Authentication module with Google Sign-In support

28 lines 1.85 kB
export interface AuthFetchOptions extends RequestInit { skipAuth?: boolean; forceTokenRefresh?: boolean; retryOnUnauthorized?: boolean; maxRetries?: number; } export declare function authenticatedFetch(url: string, options?: AuthFetchOptions): Promise<Response>; export declare function authenticatedJSON<T = any>(url: string, options?: AuthFetchOptions): Promise<T>; export declare function authenticatedPost<T = any>(url: string, data: any, options?: AuthFetchOptions): Promise<T>; export declare function authenticatedGet<T = any>(url: string, options?: AuthFetchOptions): Promise<T>; export declare function authenticatedDelete<T = any>(url: string, options?: AuthFetchOptions): Promise<T>; export declare function authenticatedPut<T = any>(url: string, data: any, options?: AuthFetchOptions): Promise<T>; export declare function authenticatedPatch<T = any>(url: string, data: any, options?: AuthFetchOptions): Promise<T>; export declare function authenticatedUpload(url: string, file: File | Blob, options?: AuthFetchOptions & { fieldName?: string; }): Promise<Response>; export declare function createAuthenticatedClient(baseURL: string): { fetch: (path: string, options?: AuthFetchOptions) => Promise<Response>; get: <T = any>(path: string, options?: AuthFetchOptions) => Promise<T>; post: <T = any>(path: string, data: any, options?: AuthFetchOptions) => Promise<T>; put: <T = any>(path: string, data: any, options?: AuthFetchOptions) => Promise<T>; patch: <T = any>(path: string, data: any, options?: AuthFetchOptions) => Promise<T>; delete: <T = any>(path: string, options?: AuthFetchOptions) => Promise<T>; upload: (path: string, file: File | Blob, options?: AuthFetchOptions & { fieldName?: string; }) => Promise<Response>; }; //# sourceMappingURL=AuthenticatedFetch.d.ts.map