authrix
Version:
Lightweight, flexible authentication library for Node.js and TypeScript.
28 lines (25 loc) • 691 B
text/typescript
import { A as AuthDbAdapter } from './db-R-GJxQGc.cjs';
declare const authConfig: {
jwtSecret: string;
db: AuthDbAdapter | null;
cookieName: string;
};
declare function initAuth(config: {
jwtSecret: string;
db: AuthDbAdapter;
cookieName?: string;
}): void;
/**
* Check if Authrix is properly initialized
* Useful for debugging configuration issues
*/
declare function isAuthrixInitialized(): boolean;
/**
* Get the current initialization status for debugging
*/
declare function getAuthrixStatus(): {
jwtSecret: string;
db: string;
cookieName: string;
};
export { authConfig as a, isAuthrixInitialized as b, getAuthrixStatus as g, initAuth as i };