summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2025-04-09 12:09:01 +0200
committerSanto Cariotti <santo@dcariotti.me>2025-04-09 12:09:01 +0200
commit589b58ef0b962dfe0ab0c30170b8d29bf152f15f (patch)
treea1b09782eab7f1bb406c9bff208220926a31c737
parente6bc3e21121bc00796d9587aeb8c6b0101e39fa3 (diff)
Fix auth_test.go
-rw-r--r--internal/api/auth/auth_test.go2
1 files changed, 2 insertions, 0 deletions
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)