0
0

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 3 years have passed since last update.

Firebase メールアドレスとパスワードで新規登録、ログイン機能 (復習)

Posted at

今回の内容

  • Firebase メールアドレスとパスワードで新規登録、ログイン機能を使った時の復習です。

コード

  • import Firebaseを忘れないようにしましょう。
import
   import Firebase

新規登録機能

新規登録機能
    func signUp(emailString:String, passwordString:String){
        
        Auth.auth().createUser(withEmail: emailString, password: passwordString) { (result, error) in
            
            if error != nil { print(error.debugDescription) return } 
            
        }
        
    }

ログイン機能

    func login(emailString:String, passwordString:String){
        
        Auth.auth().signIn(withEmail: emailString, password: passwordString) { (result, error) in
            
            if error != nil{print(error.debugDescription) return}
        
        }
            
    }

終わり

ご指摘、ご質問などありましたら、コメントまでお願い致します。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?