Commit dea87c4c authored by Henry's avatar Henry

jwt.ValidationError didn't not implement error

I tried to type assert the err from jwt.Parse() and got this

```
./main.go:135: impossible type assertion:
	jwt.ValidationError does not implement error (Error method has pointer receiver)
```


this fixes it and makes the Errors field accessible.
parent 71c6a65c
......@@ -172,7 +172,7 @@ type ValidationError struct {
}
// Validation error is an error type
func (e *ValidationError) Error() string {
func (e ValidationError) Error() string {
if e.err == "" {
return "Token is invalid"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment