MCPcopy Create free account
hub / github.com/WardAnalytics/WardGraph / resetUserPassword

Function resetUserPassword

src/services/auth/auth.services.ts:141–154  ·  view source on GitHub ↗
(
  email: string,
  onSuccess: () => void,
  onError: (error: any) => void,
)

Source from the content-addressed store, hash-verified

139 * @param onError - callback function to be executed on signup error
140 */
141const resetUserPassword = async (
142 email: string,
143 onSuccess: () => void,
144 onError: (error: any) => void,
145) => {
146 await sendPasswordResetEmail(auth, email)
147 .then(() => {
148 // Password reset email sent!
149 onSuccess();
150 })
151 .catch((error) => {
152 onError(error);
153 });
154};
155
156/**
157 * Check if the user is authenticated

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected