diff --git a/frontend/src/hooks/useSessionPoller.ts b/frontend/src/hooks/useSessionPoller.ts index b52cb0a..1cd97d0 100644 --- a/frontend/src/hooks/useSessionPoller.ts +++ b/frontend/src/hooks/useSessionPoller.ts @@ -1,7 +1,7 @@ import { useEffect } from 'react'; import { useAccount } from 'wagmi'; -const POLLING_INTERVAL = 5000; // 5 seconds +const POLLING_INTERVAL = 60000; // 60 seconds interface SessionResponse { session?: { diff --git a/src/routes.ts b/src/routes.ts index 675d9ea..565e8f2 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -169,7 +169,9 @@ export async function setupRoutes(server: FastifyInstance): Promise { const baseUrl = process.env.BASE_URL; const domain = new URL(baseUrl).host; const issuedAt = new Date(); - const expirationTime = new Date(issuedAt.getTime() + 30 * 60 * 1000); // 30 minutes + const expirationTime = new Date( + issuedAt.getTime() + 7 * 24 * 60 * 60 * 1000 + ); // 1 week const payload = { domain,