Skip to content

Update auth.md - #3652

Closed
saadlalam wants to merge 2 commits into
angular:mainfrom
saadlalam:patch-1
Closed

Update auth.md#3652
saadlalam wants to merge 2 commits into
angular:mainfrom
saadlalam:patch-1

Conversation

@saadlalam

Copy link
Copy Markdown

Console.log had the wrong logged value.

Checklist

  • Issue number for this PR: #nnn (required)
  • Docs included?: (yes/no; required for all API/functional changes)
  • Test units included?: (yes/no; required)
  • In a clean directory, yarn install, yarn test run successfully? (yes/no; required)

Description

Code sample

Console.log had the wrong logged value.
@google-cla

google-cla Bot commented May 24, 2025

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@armando-navarro armando-navarro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is correct: the callback parameter in scope is token, and the original line referenced the type name string, which is not a value in this example. One-line change, verified against the current head.

@saadlalam You'll need to sign the Contributor License Agreement (CLA) first to get this merged.

@armando-navarro armando-navarro added comp: docs Documentation. type: chore Maintenance with no user-facing behavior change. labels Jul 25, 2026
armando-navarro added a commit that referenced this pull request Aug 5, 2026
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.
@armando-navarro

Copy link
Copy Markdown
Collaborator

Thanks for catching this and for the fix, @saadlalam. The change is correct: the callback parameter in scope is token, and the original line referenced string, which is a type name rather than a value.

The one thing blocking a merge here was the CLA check, which never cleared on this branch. Rather than leave a good fix stranded, I've applied your correction in #3728 and credited you there. I'm closing this in favor of that PR, but the fix is yours.

Thanks again for taking the time to report and fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: docs Documentation. type: chore Maintenance with no user-facing behavior change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants