/** * @akson/cortex-supabase - Server Components * Server-only exports for server components and API routes */ export { createClient as createServerClient, createRouteHandlerClient } from './clients/server'; export type { Session, User } from '@supabase/supabase-js'; export { isAdmin, hasRole, getUserDisplayName, getUserInitials, canAccessResource, formatUserMetadata, validateAdminAction, } from './lib/admin-utils'; export { isSessionValid, getSessionRemainingTime, getSessionInfo, shouldRefreshSession, formatSessionExpiry, } from './lib/session-utils'; export { handleLogin, handleLogout, handleSignup, handlePasswordResetRequest, handlePasswordUpdate, handleGetUser, handleGetSession, handleRefreshSession, withAuth, withAdminAuth, AuthApiResponse, } from './api/handlers'; export type { ApiResponse } from './api/handlers'; export declare const authUtils: { isAdmin: (user: any) => boolean; hasRole: (user: any, role: string) => boolean; isTokenExpired: (expiresAt?: number) => boolean; }; //# sourceMappingURL=server.d.ts.map