@daveyplate/better-auth-ui
Version:
Plug & play shadcn/ui components for better-auth
62 lines (56 loc) • 1.83 kB
text/typescript
export const authViewPaths = {
/** "callback" */
CALLBACK: "callback",
/** "email-otp" */
EMAIL_OTP: "email-otp",
/** "email-verification" */
EMAIL_VERIFICATION: "email-verification",
/** "forgot-password" */
FORGOT_PASSWORD: "forgot-password",
/** "magic-link" */
MAGIC_LINK: "magic-link",
/** "recover-account" */
RECOVER_ACCOUNT: "recover-account",
/** "reset-password" */
RESET_PASSWORD: "reset-password",
/** "sign-in" */
SIGN_IN: "sign-in",
/** "sign-out" */
SIGN_OUT: "sign-out",
/** "sign-up" */
SIGN_UP: "sign-up",
/** "two-factor" */
TWO_FACTOR: "two-factor",
/** "accept-invitation" */
ACCEPT_INVITATION: "accept-invitation"
}
export type AuthViewPaths = typeof authViewPaths
// Account-scoped views (signed-in user)
export const accountViewPaths = {
/** "settings" */
SETTINGS: "settings",
/** "security" */
SECURITY: "security",
/** "teams" */
TEAMS: "teams",
/** "api-keys" */
API_KEYS: "api-keys",
/** "organizations" */
ORGANIZATIONS: "organizations"
}
export type AccountViewPaths = typeof accountViewPaths
// Organization-scoped views
export const organizationViewPaths = {
/** "settings" */
SETTINGS: "settings",
/** "members" */
MEMBERS: "members",
/** "teams" */
TEAMS: "teams",
/** "api-keys" */
API_KEYS: "api-keys"
}
export type OrganizationViewPaths = typeof organizationViewPaths
export type AuthViewPath = keyof AuthViewPaths
export type AccountViewPath = keyof AccountViewPaths
export type OrganizationViewPath = keyof OrganizationViewPaths