You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use Firestore for storing profile data instead of Real Time Database, the basic example can be followed exactly with the following config.
60
+
61
+
```js
62
+
constconfig= {
63
+
userProfile:'users', // where profiles are stored in database
64
+
useFirestoreForProfile:true// use Firestore for profile instead of RTDB
65
+
}
66
+
```
67
+
55
68
## Update Profile
56
69
57
70
The current users profile can be updated by using the `updateProfile` method:
@@ -109,11 +122,14 @@ const config = {
109
122
}
110
123
```
111
124
125
+
This also works with profiles stored on Firestore if using the `useFirestoreForProfile` option
126
+
112
127
## List Online Users
113
128
114
129
To list online users and/or track sessions, view the [presence recipe](/docs/recipes/auth.md#presence)
115
130
116
131
## Populate Parameters
132
+
117
133
If profile object contains an key or a list of keys as parameters, you can populate those parameters with the matching value from another location on firebase.
0 commit comments