fix: address /home/stevan/go/bin/golangci-lint run ./... issues

This commit is contained in:
Stevan Freeborn
2026-08-15 22:09:59 -05:00
parent 9eca3c71e2
commit 19f5aca484
3 changed files with 14 additions and 5 deletions
+8 -1
View File
@@ -13,9 +13,16 @@ func TestJwtCreationAndValidation(t *testing.T) {
secret := []byte("RTCK2UTcOUkiswdrClC6Z3KmmEq/+QicpD9iRx7J0qY=")
jwtString, err := auth.MakeJWT(userId, secret, time.Hour)
if err != nil {
t.Fatalf("failed to create JWT: %v", err)
}
validatedUserId, err := auth.ValidateJWT(jwtString, secret)
if err != nil {
t.Fatalf("failed to validate JWT: %v", err)
}
if userId != validatedUserId {
t.Fatalf("received %s expected %s: %v", validatedUserId, userId, err)
t.Fatalf("received %s expected %s", validatedUserId, userId)
}
}