This Go package provides a convienent method to parse auth JWT issued by Firebase Authentication.
An authentication token (auth token) is a computer generated code that helps to verify if user's identity is authentic or not. JWT or Json Web Token is one type of auth token which is used as Bearer token and self-signed. Read more at JWT.io
go get github.com/ubbn/firebasejwt@v0.1.0
import github.com/ubbn/firebasejwt
func main() {
claims, err := firebasejwt.ParseFirebaseJWT("<token issued by firebase auth>")
fmt.Println(claims["name"])
fmt.Println(claims["email"])
}
Package documentation can be found on pkg.go.dev