Skip to content
Permalink
Browse files

Align comments for checkRevoked (VerifyIDToken) (#10)

* Fix comments in snippets, formatting

* Comments check revoked

* Adding reference to token, usage of variable
  • Loading branch information...
avishalom
avishalom committed Feb 15, 2018
1 parent 9e43878 commit 9f562e76c2481dc72c913e3a6786ddc09e191200
Showing with 2 additions and 4 deletions.
  1. +2 −4 admin/main.go
@@ -219,13 +219,11 @@ func verifyIDTokenAndCheckRevoked(app *firebase.App, idToken string) *auth.Token
token, err := client.VerifyIDTokenAndCheckRevoked(ctx, idToken)
if err != nil {
if err.Error() == "ID token has been revoked" {
log.Println(err)
// When this occurs, inform the user to reauthenticate or signOut() the user.
// Token is revoked. Inform the user to reauthenticate or signOut() the user.
} else {
log.Fatalf("error verifying ID token: %v\n", err)
// Token is invalid
}
}

log.Printf("Verified ID token: %v\n", token)
// [END verify_id_token_and_check_revoked]

0 comments on commit 9f562e7

Please sign in to comment.
You can’t perform that action at this time.