We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e29e9e3 commit f5d6084Copy full SHA for f5d6084
internal/token/token.go
@@ -29,7 +29,7 @@ func GenerateJWT(username string, sessionID uuid.UUID) (string, error) {
29
/* validate JWT token and return claims */
30
func ValidateJWT(tokenString string) (jwt.MapClaims, error) {
31
/* parse the token */
32
- token, err := jwt.Parse(tokenString, func(token *jwt.Token) (interface{}, error) {
+ token, err := jwt.Parse(tokenString, func(token *jwt.Token) (any, error) {
33
if _, ok := token.Method.(*jwt.SigningMethodHMAC); !ok {
34
return nil, fmt.Errorf("unexpected signing method")
35
}
0 commit comments