We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25c0b60 commit 00c55a3Copy full SHA for 00c55a3
.changeset/light-poets-eat.md
@@ -0,0 +1,7 @@
1
+---
2
+'@firebase/auth': minor
3
+'@firebase/auth-compat': patch
4
5
+
6
+Add `beforeAuthStateChanged()` middleware function which allows the user to provide callbacks that are run before an auth state change
7
+sets a new user.
packages/auth/src/model/public_types.ts
@@ -259,7 +259,7 @@ export interface Auth {
259
* sets a new user.
260
*
261
* @param callback - callback triggered before new user value is set.
262
- * If this throws, it will block the user from being set.
+ * If this throws, it blocks the user from being set.
263
*/
264
beforeAuthStateChanged(
265
callback: (user: User | null) => void | Promise<void>
0 commit comments