2019-09-02 19:23:37 +00:00
|
|
|
import { stringify as stringifyQs } from "qs";
|
|
|
|
|
|
|
|
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 {
|
2019-09-03 13:42:15 +00:00
|
|
|
email: string;
|
2019-09-02 19:23:37 +00:00
|
|
|
token: string;
|
|
|
|
}
|
|
|
|
export const newPasswordUrl = (params?: NewPasswordUrlQueryParams) =>
|
|
|
|
newPasswordPath + "?" + stringifyQs(params);
|