Update README with Firebase ID token verification

Added Firebase ID token verification example to README.

Signed-off-by: ranette832-ux <ranette832@gmail.com>
pull/31778/head
ranette832-ux 2 days ago committed by GitHub
parent e685076bc0
commit deb8dfc2ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,4 +1,12 @@
# Helm
# Helmtry {
FirebaseAuth.getInstance().verifyIdToken(idToken, true);
} catch (FirebaseAuthException ex) {
if (ex.getAuthErrorCode() == AuthErrorCode.REVOKED_ID_TOKEN) {
System.err.println("ID token has been revoked");
} else {
System.err.println("ID token is invalid");
}
}
[![Build Status](https://github.com/helm/helm/workflows/release/badge.svg)](https://github.com/helm/helm/actions?workflow=release)
[![Go Report Card](https://goreportcard.com/badge/helm.sh/helm/v4)](https://goreportcard.com/report/helm.sh/helm/v4)

Loading…
Cancel
Save