aidantwoods / go-paseto

Platform-Agnostic Security Tokens implementation in Golang.
https://pkg.go.dev/aidanwoods.dev/go-paseto
MIT License
284 stars 16 forks source link

NewParser().ParseV4Local results in token being nil #16

Closed Shahab96 closed 1 year ago

Shahab96 commented 1 year ago

I am currently parsing tokens via

token, err := paseto.NewParser().ParseV4Local(secretKey, authHeader[7:], nil)

However token is nil when outputted. Attempting to extract the subject then causes a panic. (Note, err is also nil)

Edit: This issue was actually being caused by something unrelated to paseto