Skip to content

Commit 00c55a3

Browse files
authored
Changeset for beforeAuthStateChanged() (#6221)
1 parent 25c0b60 commit 00c55a3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/light-poets-eat.md

+7
Original file line numberDiff line numberDiff line change
@@ -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

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export interface Auth {
259259
* sets a new user.
260260
*
261261
* @param callback - callback triggered before new user value is set.
262-
* If this throws, it will block the user from being set.
262+
* If this throws, it blocks the user from being set.
263263
*/
264264
beforeAuthStateChanged(
265265
callback: (user: User | null) => void | Promise<void>

0 commit comments

Comments
 (0)