honojs / middleware

monorepo for Hono third-party middleware/helpers/wrappers
https://hono.dev
437 stars 155 forks source link

[firebase - auth] want to get uid from decoded idToken #757

Open rahInoue opened 3 weeks ago

rahInoue commented 3 weeks ago

Hello!

I am using @hono/firebase-auth for verifying Firebase ID tokens. During this verification process, if I can obtain the UID in the context (for example, if the UID is stored in KV), I believe it would allow me to execute processes dependent on the UID without having to interact with the client, based solely on the authorization header.

This may not be a common practice, but if such a feature were available, it seems like it would reduce one concern for front-end tasks.

yusukebe commented 3 weeks ago

Hi @rahInoue

@Code-Hex Can you handle this issue?