We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 16beb6b + 5bf9c94 commit f9be571Copy full SHA for f9be571
auth.go
@@ -338,3 +338,17 @@ func (auth *Auth) UpdateUser(user *User) (*UserRecord, error) {
338
}
339
return res, nil
340
341
+
342
+// SendPasswordResetEmail sends password reset for the given user
343
+// Only useful for the Email/Password provider
344
+func (auth *Auth) SendPasswordResetEmail(email string) error {
345
+ r := auth.client.Relyingparty.GetOobConfirmationCode(&identitytoolkit.Relyingparty{
346
+ Email: email,
347
+ RequestType: "PASSWORD_RESET",
348
+ })
349
+ _, err := r.Do()
350
+ if err != nil {
351
+ return err
352
+ }
353
+ return nil
354
+}
0 commit comments