firebase / firebase/firebase-admin-dotnet
How to verify ID Token without requiring credentials?
Open
- Dominant language
- C#
- Stars
- 408
- Forks
- 146
- Avg merge
- 22h 7m
- Merged PRs (30d)
- 1
Description
As per the docs: https://firebase.google.com/docs/auth/admin/verify-id-tokens#c
```csharp
FirebaseToken decodedToken = await FirebaseAuth.DefaultInstance
.VerifyIdTokenAsync(idToken);
string uid = decodedToken.Uid;
```
However this requires initializing the DefaultInstance with service credentials. Verifying the token should be possible without private credentials (if we don't check revoked).
How can I do this?
Contributor guide
Assessment
This issue has not been assessed yet.