diff --git a/__tests__/api/pair-start.test.ts b/__tests__/api/pair-start.test.ts index c29281a..8c7207f 100644 --- a/__tests__/api/pair-start.test.ts +++ b/__tests__/api/pair-start.test.ts @@ -62,10 +62,10 @@ describe('POST /api/auth/pair/start', () => { expect(arg.desktop_token_hash).toMatch(/^[a-f0-9]{64}$/) expect(arg.secret_hash).not.toBe(body.mobileSecret) expect(arg.status).toBe('pending') - // expires_at ~120s in toekomst + // expires_at ~5 min in toekomst const dt = new Date(arg.expires_at).getTime() - Date.now() - expect(dt).toBeGreaterThan(115_000) - expect(dt).toBeLessThan(125_000) + expect(dt).toBeGreaterThan(295_000) + expect(dt).toBeLessThan(305_000) }) it('zet HttpOnly Path-scoped s4m_pair cookie met Max-Age 120', async () => { @@ -78,7 +78,7 @@ describe('POST /api/auth/pair/start', () => { httpOnly: true, sameSite: 'lax', path: '/api/auth/pair', - maxAge: 120, + maxAge: 300, }) }) diff --git a/app/(app)/m/pair/pair-confirmation.tsx b/app/(app)/m/pair/pair-confirmation.tsx index fc5c42e..9d92b0d 100644 --- a/app/(app)/m/pair/pair-confirmation.tsx +++ b/app/(app)/m/pair/pair-confirmation.tsx @@ -110,18 +110,18 @@ export function PairConfirmation() { if (state.kind === 'invalid') { return ( -
Kan deze QR-code niet gebruiken
-{state.error}
+{state.error}
Klaar — je kunt deze tab sluiten.
-+
Het apparaat met de QR-code is nu ingelogd als {state.username}.
Geannuleerd
-Er is geen sessie aangemaakt op het andere apparaat.
++ Er is geen sessie aangemaakt op het andere apparaat. +