Skip to content

Commit

Permalink
extend session time
Browse files Browse the repository at this point in the history
  • Loading branch information
0age committed Dec 6, 2024
1 parent 38de231 commit e04d573
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/hooks/useSessionPoller.ts
Original file line number Diff line number Diff line change
@@ -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?: {
Expand Down
4 changes: 3 additions & 1 deletion src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ export async function setupRoutes(server: FastifyInstance): Promise<void> {
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,
Expand Down

0 comments on commit e04d573

Please sign in to comment.