UNPKG

create-auth-js-boiler

Version:
25 lines (20 loc) 608 B
/** * @description This file contains the routes for the application. */ export const publicRoutes = ["/", "/auth/new-verification"]; export const authRoutes = [ "/auth/login", "/auth/register", "/auth/error", "/auth/reset", "/auth/forgot-password", "/auth/new-password", "/auth/new-verification", ]; export const apiAuthPrefix = "/api/auth"; /** * The default redirect path after logging in * @type {string} * @description This is the default redirect path after logging in. It is used in the login page and the auth middleware. */ export const DEFAULT_LOGIN_REDIRECT: string = "/";