From 589b58ef0b962dfe0ab0c30170b8d29bf152f15f Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 9 Apr 2025 12:09:01 +0200 Subject: Fix auth_test.go --- internal/api/auth/auth_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/api/auth/auth_test.go b/internal/api/auth/auth_test.go index 50b6c9b..66bcc27 100644 --- a/internal/api/auth/auth_test.go +++ b/internal/api/auth/auth_test.go @@ -19,6 +19,8 @@ func TestGenerateAndValidateJWT(t *testing.T) { assert.NoError(t, err) assert.NotEmpty(t, tokenString) + tokenString = "Bearer " + tokenString + claims, err := ValidateJWT(tokenString) assert.NoError(t, err) assert.NotNil(t, claims) -- cgit v1.2.3-18-g5258