in src/server/lib/idapi/user.ts [75:89]
options: APIAddClientAccessToken(options, ip),
});
} catch (error) {
logger.error(`IDAPI Error change email '/user/change-email'`, error);
return handleError(error as IDAPIError);
}
};
export const getUserByEmailAddress = async (
email: string,
ip: string | undefined,
): Promise<User> => {
const options = APIAddClientAccessToken(APIGetOptions(), ip);
try {
const response = (await idapiFetch({