UNPKG

@analog-tools/auth

Version:

Authentication module for AnalogJS applications

21 lines (20 loc) 1.12 kB
import { default as authenticated } from '../routes/authenticated'; import { default as callback } from '../routes/callback'; import { default as login } from '../routes/login'; import { default as logout } from '../routes/logout'; import { default as protectedData } from '../routes/protected-data'; import { default as refreshTokens } from '../routes/refresh-tokens'; import { default as user } from '../routes/user'; /** * Registers all authentication routes dynamically * @returns A record of route paths mapped to their handler functions */ export declare function registerRoutes(): { [authenticated.path]: (event: import('h3').H3Event) => Promise<any> | any; [callback.path]: (event: import('h3').H3Event) => Promise<any> | any; [login.path]: (event: import('h3').H3Event) => Promise<any> | any; [logout.path]: (event: import('h3').H3Event) => Promise<any> | any; [protectedData.path]: (event: import('h3').H3Event) => Promise<any> | any; [refreshTokens.path]: (event: import('h3').H3Event) => Promise<any> | any; [user.path]: (event: import('h3').H3Event) => Promise<any> | any; };