mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 11:08:12 +00:00
feat: ( forget password ) add phone number
This commit is contained in:
@@ -4,8 +4,10 @@ const API_URL = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:4000';
|
||||
|
||||
|
||||
export const iamAuthApi = {
|
||||
forgotPassword: (email: string) =>
|
||||
axios.post(`${API_URL}/v1/auth/forgot-password`, { email }),
|
||||
// `identifier` can be an email address or a phone number — the IAM accepts
|
||||
// either in the `email` field of the forgot-password body.
|
||||
forgotPassword: (identifier: string) =>
|
||||
axios.post(`${API_URL}/v1/auth/forgot-password`, { email: identifier }),
|
||||
|
||||
resetPassword: (data: {
|
||||
userId: string;
|
||||
|
||||
Reference in New Issue
Block a user