Skip to content

Commit eaeb33f

Browse files
committed
fix(auth): drop stale Role field from Session test literal
Session.Role was removed from the base branch; the constant-time mismatch test in service_test.go still referenced it, breaking go vet. Remove the field from the struct literal; the test logic is unaffected (it verifies token-hash rejection, not role checks).
1 parent 0712ca1 commit eaeb33f

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎internal/auth/service_test.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ func TestService_ValidateSession(t *testing.T) {
206206
Token: "completely-different-hash",
207207
UserID: "user-999",
208208
Email: "mismatch@example.com",
209-
Role: RoleUser,
210209
ExpiresAt: time.Now().Add(time.Hour),
211210
}
212211

0 commit comments

Comments
 (0)