Skip to content

Commit 30f85d8

Browse files
committed
dont accept temp participants
1 parent d9aff0c commit 30f85d8

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

apps/audit/test/public-endpoint.test.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -254,30 +254,6 @@ describe('Public Event Context Injection', () => {
254254
// would require checking the stored data in Azure Table Storage
255255
// This is covered in the integration tests
256256
})
257-
258-
it('should handle temporary participant tokens', async () => {
259-
const tempToken = await createParticipantToken(
260-
'temp-participant-789',
261-
'TEMPORARY_PARTICIPANT'
262-
)
263-
const eventData = {
264-
action: AuditAction.PARTICIPANT_JOIN_QUIZ,
265-
timestamp: Date.now(),
266-
}
267-
268-
const response = await fetch(`${BASE_URL}/audit/public`, {
269-
method: 'POST',
270-
headers: {
271-
'Content-Type': 'application/json',
272-
Cookie: `next-auth.participant-session-token=${tempToken}`,
273-
},
274-
body: JSON.stringify(eventData),
275-
})
276-
277-
expect(response.status).toBe(200)
278-
const result = (await response.json()) as any
279-
expect(result.status).toBe('stored')
280-
})
281257
})
282258

283259
describe('Public Event Data Validation', () => {

0 commit comments

Comments
 (0)