Skip to content

Commit 7b3ea69

Browse files
committed
Update onIdTokenChanged docs about token expiration.
1 parent 75d4a9a commit 7b3ea69

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
@@ -532,7 +532,7 @@ export declare function onAuthStateChanged(auth: Auth, nextOrObserver: NextOrObs
532532

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

535-
This includes sign-in, sign-out, and token refresh events.
535+
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.
536536

537537
<b>Signature:</b>
538538

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)