Skip to content

fix issue where validSince can exceed auth_time - #11451

Merged
aalej merged 4 commits into
mainfrom
aalej_11413
Nov 5, 2026
Merged

aalej merged 4 commits into
mainfrom
aalej_11413

Conversation

@aalej

@aalej aalej commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes #11413

Scenarios Tested

Sample Commands

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request addresses a race condition in the Auth emulator during the accounts:signUp operation where validSince could exceed auth_time. This is resolved by using a single captured timestamp instead of creating a new Date instance. A unit test has been added to simulate and verify this boundary condition. The review feedback points out a style guide violation in the test file, recommending the removal of the as unknown cast when decoding the JWT.

Comment thread src/emulator/auth/signUp.spec.ts Resolved
aalej and others added 2 commits November 5, 2026 03:03
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@aalej
aalej enabled auto-merge (squash) November 5, 2026 10:18
@aalej
aalej merged commit a1d78e7 into main Nov 5, 2026
51 checks passed
@aalej
aalej deleted the aalej_11413 branch November 5, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auth emulator: signUp can set validSince one second after auth_time, so Admin SDK rejects the fresh ID token as revoked

2 participants