Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mbleigh
Copy link
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.

@mbleigh mbleigh requested review from inlined and taeold March 6, 2025 08:04
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.

1 participant