18 lines
589 B
TypeScript
18 lines
589 B
TypeScript
![]() |
import { stringify as stringifyQs } from "qs";
|
||
|
|
||
|
export const loginPath = "/login/";
|
||
|
export const loginUrl = loginPath;
|
||
|
|
||
|
export const passwordResetPath = "/reset-password/";
|
||
|
export const passwordResetUrl = passwordResetPath;
|
||
|
|
||
|
export const passwordResetSuccessPath = "/reset-password/success/";
|
||
|
export const passwordResetSuccessUrl = passwordResetSuccessPath;
|
||
|
|
||
|
export const newPasswordPath = "/new-password/";
|
||
|
export interface NewPasswordUrlQueryParams {
|
||
|
token: string;
|
||
|
}
|
||
|
export const newPasswordUrl = (params?: NewPasswordUrlQueryParams) =>
|
||
|
newPasswordPath + "?" + stringifyQs(params);
|