From f7db1b4a69943840f3733fa3eec9eeb4d101f50a Mon Sep 17 00:00:00 2001 From: Armando Navarro Date: Mon, 3 Aug 2026 13:29:07 -0700 Subject: [PATCH] docs(auth): log the token value in the idToken example The idToken example's subscription logged `string`, a type name rather than a value in that scope, so the snippet would not compile if copied. Log the `token` parameter the callback receives, matching the neighboring authState example. Also correct the comment on the line above, copied from the authState example, which referred to a user rather than the token this example streams. Reland of #3652 by saadlalam, whose fix was correct but could not be merged because the CLA check never cleared on that branch. --- docs/auth.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/auth.md b/docs/auth.md index b91469c47..a24f19d13 100644 --- a/docs/auth.md +++ b/docs/auth.md @@ -171,8 +171,8 @@ export class UserComponent implements OnDestroy { constructor() { this.idTokenSubscription = this.idToken$.subscribe((token: string | null) => { - //handle idToken changes here. Note, that user will be null if there is no currently logged in user. - console.log(string); + //handle idToken changes here. Note, that token will be null if there is no currently logged in user. + console.log(token); }) }