Skip to content

Commit f5d6084

Browse files
Updated data types
1 parent e29e9e3 commit f5d6084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/token/token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func GenerateJWT(username string, sessionID uuid.UUID) (string, error) {
2929
/* validate JWT token and return claims */
3030
func ValidateJWT(tokenString string) (jwt.MapClaims, error) {
3131
/* parse the token */
32-
token, err := jwt.Parse(tokenString, func(token *jwt.Token) (interface{}, error) {
32+
token, err := jwt.Parse(tokenString, func(token *jwt.Token) (any, error) {
3333
if _, ok := token.Method.(*jwt.SigningMethodHMAC); !ok {
3434
return nil, fmt.Errorf("unexpected signing method")
3535
}

0 commit comments

Comments
 (0)