You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
filename: A.go user := ctx.Locals("user").(*jwt.Token)
// panic: interface conversion: interface {} is *jwt.Token, not *jwt.Token (types from different packages)
the code copy auth-jwt from the demos , today when i want to get auth message show the error .
login method use the lib of github.com/dgrijalva/jwt-go .
when i change the file A.go, important "github.com/form3tech-oss/jwt-go" to replace old jwt-go.
it is work. not panic error .
Why ?
The text was updated successfully, but these errors were encountered:
The new Fiber JWT library uses form3tech as you've seen because of a vulnerability in the previous JWT package: dgrijalva/jwt-go#428 . Is that what you mean?
filename: A.go
user := ctx.Locals("user").(*jwt.Token)
// panic: interface conversion: interface {} is *jwt.Token, not *jwt.Token (types from different packages)
the code copy
auth-jwt
from the demos , today when i want to get auth message show the error .login method use the lib of
github.com/dgrijalva/jwt-go
.when i change the file
A.go
, important "github.com/form3tech-oss/jwt-go" to replace old jwt-go.it is work. not panic error .
Why ?
The text was updated successfully, but these errors were encountered: