-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.ts
32 lines (29 loc) · 803 Bytes
/
routes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* An array of routes that are public and can be accessed by anyone
* this routes dont require authentication
* @type {string[]}
*/
export const publicRoutes = ["/", "/auth/confirm-email"];
/**
* An array of routes that are protected and can be accessed by anyone
* this routes about authentication
* @type {string[]}
*/
export const authRoutes = [
"/auth/login",
"/auth/register",
"/auth/reset-password",
"/auth/new-password",
"/auth/error",
];
/**
* The prefix of the authentication routes
* Routes that start with this prefix are used for API authentication purposes
* @type {string}
*/
export const apiAuthPrefix = "/api/auth";
/**
* The default path to redirect to after successful authentication
* @type {string}
*/
export const DEFAULT_REDIRECT_PATH = "/settings";