This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
import { API_PATH, PORT, RESET_ROUTE } from '../constants/defaults';
|
||||
import { RESET_ROUTE, ROUTE_PREFIX } from '../constants/constants';
|
||||
|
||||
export const getPasswordResetLink = (token: string) => {
|
||||
const hostname = process.env.HOST_NAME || `localhost:${process.env.PORT || PORT}`;
|
||||
const path = `${process.env.API_PATH || API_PATH}${process.env.RESET_ROUTE || RESET_ROUTE}`;
|
||||
return `https://${hostname}${path}?t=${token}`;
|
||||
};
|
||||
export const getPasswordResetPath = (token: string) => `${ROUTE_PREFIX}${RESET_ROUTE}?t=${token}`;
|
||||
|
||||
Reference in New Issue
Block a user