Files
KanbanGit/resources/js/lib/fortify.ts
T
Koda 94e32497b0
linter / quality (pull_request) Successful in 1m22s
tests / ci (8.4) (pull_request) Successful in 1m35s
Avoid optional Fortify route imports
2026-05-22 23:33:01 +00:00

26 lines
848 B
TypeScript

export const fortifyRoutes = {
register: {
create: '/register',
store: '/register',
},
password: {
request: '/forgot-password',
email: '/forgot-password',
update: '/reset-password',
confirm: '/user/confirm-password',
reset: (token: string): string => `/reset-password/${encodeURIComponent(token)}`,
},
verification: {
send: '/email/verification-notification',
},
twoFactor: {
challenge: '/two-factor-challenge',
enable: '/user/two-factor-authentication',
disable: '/user/two-factor-authentication',
confirm: '/user/confirmed-two-factor-authentication',
qrCode: '/user/two-factor-qr-code',
recoveryCodes: '/user/two-factor-recovery-codes',
secretKey: '/user/two-factor-secret-key',
},
} as const;