diff --git a/api/handlers/v1/jwt.go b/api/handlers/v1/jwt.go index 58d1bef..88da586 100644 --- a/api/handlers/v1/jwt.go +++ b/api/handlers/v1/jwt.go @@ -84,7 +84,10 @@ func (h *Handler) generateAdminJwt(username string) (string, error) { claims["exp"] = time.Now().Add(10 * time.Minute) claims["authorized"] = true claims["username"] = username - claims["scopes"] = domain.ScopeAll + + var scopes []string + scopes = append(scopes, domain.ScopeAll) + claims["scopes"] = scopes tokenString, err := token.SignedString(secret) if err != nil {