Skip to content

Conversation

cacaoMath
Copy link
Owner

signup activityのエラーがユーザからわかりにくいのと、コードがリファクタできそうなのでリファクタする

以下を参考にする
```
public Task<AuthResult> createUserWithEmailAndPassword (String email, String password)
Tries to create a new user account with the given email address and password. If successful, it also signs the user in into the app.

Access the signed-in user with getCurrentUser().

Upon successful completion, this operation triggers an FirebaseAuth.IdTokenListener.onIdTokenChanged(FirebaseAuth) event in all registered FirebaseAuth.IdTokenListeners and an FirebaseAuth.AuthStateListener.onAuthStateChanged(FirebaseAuth) event in all registered FirebaseAuth.AuthStateListeners.

Important: you must enable Email & Password accounts in the Firebase console before you can use this method.

Exceptions
FirebaseAuthWeakPasswordException thrown if the password is not strong enough
FirebaseAuthInvalidCredentialsException thrown if the email address is malformed
FirebaseAuthUserCollisionException thrown if there already exists an account with the given email address
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

サインアップ時に既存のメールアドレスがある場合に、それを通知したい
1 participant