firebase-functions icon indicating copy to clipboard operation
firebase-functions copied to clipboard

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

Open mbleigh opened this issue 9 months ago • 0 comments

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 avatar Mar 06 '25 08:03 mbleigh