Skip to content

Commit 0ce8371

Browse files
sung17Deathgiver
andauthored
fix(minigames): extend play link token TTL from 1 hour to 1 day (#1030)
The signed minigame play link was expiring after 1 hour, which is often too short for a contact to click a shared link and play, even while the minigame's own active window is still open. Co-authored-by: Deathgiver <anonymous@users.noreply.github.com>
1 parent 9b4c01a commit 0ce8371

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/encryption/src/minigame-play-token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
} from "./appointment-token-utils"
66

77
const TOKEN_AAD = "minigame-play-token"
8-
const DEFAULT_TOKEN_TTL_MS = 60 * 60 * 1000
8+
const DEFAULT_TOKEN_TTL_MS = 24 * 60 * 60 * 1000
99

1010
export const minigamePlayPayloadSchema = z.object({
1111
workspaceId: z.string().min(1),

0 commit comments

Comments
 (0)