dgrijalva / jwt-go

ARCHIVE - Golang implementation of JSON Web Tokens (JWT). This project is now maintained at:
https://github.com/golang-jwt/jwt
MIT License
10.78k stars 997 forks source link

Simple example of parsing and validating a token missing #464

Open kaihendry opened 3 years ago

kaihendry commented 3 years ago

I'm going in circles looking for a simple example of validating a token https://s.natalian.org/2021-04-14/example.mp4

I think the README's link maybe broken?

d3v1l401 commented 3 years ago

Hey there, check #465 for an example of mine, but be aware that I'm currently having problems verifying the JWT signature with RSA.

Otherwise, the official example using HMAC is this one: https://pkg.go.dev/github.com/dgrijalva/jwt-go?utm_source=godoc#example-Parse-Hmac