質問編集履歴

3

更新

2019/06/04 02:28

投稿

shota_key
shota_key

スコア8

test CHANGED
File without changes
test CHANGED
@@ -6,11 +6,9 @@
6
6
 
7
7
  機能内容
8
8
 
9
- - すでにfirebase Authenticationにユーザー登録しているユーザーが使用する画面
9
+ - すでにfirebase Authenticationにユーザー登録しているユーザーが新規でユーザー登録する画面
10
10
 
11
- - アカウント登録画面からメールアドレスとパスワードを入力して送信するとfirebase Authenticationにユーザー登録される
11
+ - アカウント登録画面からメールアドレスとパスワードを入力して送信するとfirebase Authenticationにユーザー追加される
12
-
13
- - Google Chromeのようにアカウント登録画面にはアカウント情報が表示されている
14
12
 
15
13
 
16
14
 

2

更新

2019/06/04 02:28

投稿

shota_key
shota_key

スコア8

test CHANGED
File without changes
test CHANGED
@@ -5,6 +5,8 @@
5
5
 
6
6
 
7
7
  機能内容
8
+
9
+ - すでにfirebase Authenticationにユーザー登録しているユーザーが使用する画面
8
10
 
9
11
  - アカウント登録画面からメールアドレスとパスワードを入力して送信するとfirebase Authenticationにユーザー登録される
10
12
 

1

更新

2019/06/04 02:26

投稿

shota_key
shota_key

スコア8

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,11 @@
4
4
 
5
5
 
6
6
 
7
+ 機能内容
8
+
7
- 機能の内容としては、firebase Authenticationに登録済みのユーザーが、アカウント登録画面からfirebase Authenticationユーザー追加を複数人一括登録できというものです。
9
+ - アカウント登録画面からメールアドレスとパスワードを入力して送信するとfirebase Authenticationユーザー登録され
10
+
11
+ - Google Chromeのようにアカウント登録画面にはアカウント情報が表示されている
8
12
 
9
13
 
10
14
 
@@ -20,7 +24,31 @@
20
24
 
21
25
  上記でアカウント登録した場合、新しいアカウントが作成されると、既存のログインユーザーは新しいアカウントのログインユーザーに再ログインされてしまう。
22
26
 
27
+
28
+
29
+ ```js
30
+
31
+ firebase.auth().onAuthStateChanged(function(user) {
32
+
33
+ if (user) {
34
+
35
+ // こちらで取得できるユーザー情報が既存のものから新しいユーザーに変わってしまう。
36
+
37
+ } else {
38
+
39
+ // No user is signed in.
40
+
41
+ }
42
+
43
+ });
44
+
45
+ ```
46
+
47
+
48
+
23
- ログインユーザーは既存の状態を保たい。
49
+ ログインユーザー情報は既存の状態を保まま、firebase Authenticationにユーザー登録したい。
50
+
51
+
24
52
 
25
53
  https://firebase.google.com/docs/auth/web/password-auth?hl=ja#create_a_password-based_account
26
54