Skip to content

Commit 81cb20a

Browse files
authored
Update onIdTokenChanged docs about token expiration. (#7054)
1 parent 3fe7597 commit 81cb20a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs-devsite/auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ export declare function onAuthStateChanged(auth: Auth, nextOrObserver: NextOrObs
536536

537537
Adds an observer for changes to the signed-in user's ID token.
538538

539-
This includes sign-in, sign-out, and token refresh events.
539+
This includes sign-in, sign-out, and token refresh events. This will not be triggered automatically upon ID token expiration. Use [User.getIdToken()](./auth.user.md#usergetidtoken) to refresh the ID token.
540540

541541
<b>Signature:</b>
542542

packages/auth/src/core/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export function setPersistence(
6565
*
6666
* @remarks
6767
* This includes sign-in, sign-out, and token refresh events.
68+
* This will not be triggered automatically upon ID token expiration. Use {@link User.getIdToken} to refresh the ID token.
6869
*
6970
* @param auth - The {@link Auth} instance.
7071
* @param nextOrObserver - callback triggered on change.

0 commit comments

Comments
 (0)