Skip to content

Commit 035a8a7

Browse files
committed
include altcha expires parameter
resolves altcha-org/altcha-lib#8
1 parent 7da1780 commit 035a8a7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

functions/generate-challenge.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export default async () => {
77
const challenge = await createChallenge({
88
hmacKey,
99
maxNumber: 100_000,
10+
expires: new Date(Date.now() + 1000 * 60 * 60), // 1 hour
1011
})
1112

1213
return new Response(JSON.stringify(challenge), {

0 commit comments

Comments
 (0)