firebase / firebase-admin-dotnet

Firebase Admin .NET SDK
https://firebase.google.com/docs/admin/setup
Apache License 2.0
357 stars 129 forks source link

Using this SDK in asp net core api with dependency injection #345

Open bragma opened 1 year ago

bragma commented 1 year ago

Hi, I need to use firebase admin SDK in an backend api. My project is using DI and it's not clear to me how to initialize the SDK to use methods from controllers - in particular, how to declare lifecycle when registering with services (session, scoped, singleton). Is there a project example for this use case? Thanks!

google-oss-bot commented 1 year ago

I found a few problems with this issue: