firebase / firebase/firebase-admin-dotnet

How to verify ID Token without requiring credentials?

Open
#526 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.