firebase / firebase-admin-dotnet

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

Need Documentaion: How can print the access token #314

Closed code4muktesh closed 2 years ago

code4muktesh commented 2 years ago

Is there anyway to extract access token sothat can directly hit the api using post man

google-oss-bot commented 2 years ago

I found a few problems with this issue:

lahirumaramba commented 2 years ago

The Admin SDK uses https://github.com/googleapis/google-api-dotnet-client I believe you should be able to access the token from the Credential instance. For example:

GoogleCredential.GetApplicationDefault().GetAccessTokenForRequestAsync()

In the future, please use StackOverflow for usage questions. Thanks!