saleor-dashboard/src/auth/urls.ts
2019-09-06 15:50:46 +02:00

15 lines
534 B
TypeScript

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 {
email: string;
token: string;
}
export const newPasswordUrl = (params?: NewPasswordUrlQueryParams) =>
newPasswordPath + "?" + stringifyQs(params);