Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 239 Bytes

File metadata and controls

12 lines (8 loc) · 239 Bytes

GoogleIdTokenVerifier

To validate an Google ID Token in Golang

Usage:

authToken := "XXXXXXXXXXX.XXXXXXXXXXXX.XXXXXXXXXX"

aud := "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.apps.googleusercontent.com"

fmt.Println(Verify(authToken, aud))