Skip to content

Adds auth.rawToken to context to allow access to the underlying token.#1678

Merged
taeold merged 5 commits intomasterfrom
mb/rawToken
Oct 8, 2025
Merged

Adds auth.rawToken to context to allow access to the underlying token.#1678
taeold merged 5 commits intomasterfrom
mb/rawToken

Conversation

@mbleigh
Copy link
Copy Markdown
Contributor

@mbleigh mbleigh commented Mar 6, 2025

I've seen this request come through specifically for Genkit, but I think it applies generally -- there are some cases where a user might want to proxy calls to another Firebase service or use e.g. ServerApp to access data as the user. To do this, the original Auth ID token needs to be available to them.

This adds rawToken to AuthData throughout the codebase. If this seems like a good idea I'll go through proper channels to propose the API change.

@taeold taeold enabled auto-merge September 26, 2025 18:37
@taeold taeold added this pull request to the merge queue Oct 8, 2025
Merged via the queue into master with commit f268680 Oct 8, 2025
18 checks passed
@github-project-automation github-project-automation bot moved this from Approved [PR] to Done in [Cloud] Extensions + Functions Oct 8, 2025
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.

3 participants