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
// Listen for auth ready (promise available on store thanks to attachAuthIsReady: true config option)
157
-
store.firebaseAuthIsReady.then(() => {
158
-
console.log('Auth has loaded') // eslint-disable-line no-console
159
-
})
160
-
return store;
161
-
}
162
-
```
163
-
164
-
In order for this to work, the promise must know the name of the location within redux that the state is being stored, which is the function of the `firebaseStateName` config option. By default the `firebaseStateName` parameter is `'firebase'` to match the getting started guide. If you are storing your firebase state under a different place within redux (i.e. the name given to the `firebaseStateReducer`) such as `'firebaseState'` you must pass that name as `firebaseStateName` in your config.
165
-
166
-
#### Custom Auth Ready Logic
167
-
168
-
If you want to write your own custom logic for the promise that actually confirms that auth is ready, you can pass a promise as the `authIsReady` config option.
0 commit comments