Open gardc opened 3 years ago
Referring to this example pointed to by the readme, feeding it an invalid JWT will create a memory panic.
Go playground example.
Checking for err and token.Valid before assuming it's all good in the hood fixes the issue, Go playground example.
just check the error https://play.golang.org/p/LG0AFYMhGQm
Referring to this example pointed to by the readme, feeding it an invalid JWT will create a memory panic.
Go playground example.
Checking for err and token.Valid before assuming it's all good in the hood fixes the issue, Go playground example.