@mvp-factory/holy-auth-firebase
Version:
Firebase Authentication module with Google Sign-In support
32 lines • 1.85 kB
TypeScript
export { FirebaseAuthManager } from './core/FirebaseAuthManager';
import { FirebaseAuthManager } from './core/FirebaseAuthManager';
import type { FirebaseConfig, AuthOptions, AuthUser } from './types/FirebaseAuth';
export { authenticatedFetch, authenticatedJSON, authenticatedGet, authenticatedPost, authenticatedPut, authenticatedPatch, authenticatedDelete, authenticatedUpload, createAuthenticatedClient, AuthFetchOptions } from './utils/AuthenticatedFetch';
export { TokenVerifier, createAuthMiddleware } from './utils/TokenVerifier';
export type { FirebaseConfig, AuthUser, AuthState, SignInResult, AuthOptions, AuthError, SessionSyncData, SessionSyncResponse, TokenVerificationResult, AuthEventListener, FirebaseAuthInstance } from './types/FirebaseAuth';
export { AuthProvider, AuthEvent } from './types/FirebaseAuth';
export declare const VERSION = "1.0.0";
export declare const DEFAULT_FIREBASE_CONFIG: Partial<FirebaseConfig>;
export declare function initializeFirebaseAuth(config: FirebaseConfig, options?: AuthOptions): Promise<FirebaseAuthManager>;
export declare function isBrowser(): boolean;
export declare function isNode(): boolean;
export declare function updateAuthUI(isLoggedIn: boolean, user: AuthUser | null, config?: {
loginButtonId?: string;
logoutButtonId?: string;
userInfoId?: string;
}): void;
export interface AutoSaveOptions {
interval?: number;
key?: string;
onSave?: (data: any) => void;
onError?: (error: Error) => void;
}
export declare function setupAutoSave(getContent: () => string, options?: AutoSaveOptions): () => void;
export declare function getAutoSavedContent(key?: string): {
content: string;
timestamp: string;
userEmail: string;
userId: string;
} | null;
export declare function clearAutoSavedContent(key?: string): void;
//# sourceMappingURL=index.d.ts.map