1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Swift】Firebaseでパスワード再設定メールを送信

Last updated at Posted at 2021-10-25

Swiftを用いたiOS開発でFirebaseでパスワード再設定メールを送信するコード。

import Firebase

Auth.auth().sendPasswordReset(withEmail: "example@example.com") { error in
    if error != nil {
        print("error")
    }
    else{
        print("success")
    }
}

sendPasswordResetWithEmail:completion: メソッドを使用して、ユーザーにパスワードの再設定メールを送信している。

import Firebaseを忘れずに。

参考

Swiftのお役立ち情報

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?