diff --git a/lib/session.ts b/lib/session.ts index 202b228..bd6ac70 100644 --- a/lib/session.ts +++ b/lib/session.ts @@ -1,9 +1,9 @@ -import { withIronSession } from 'next-iron-session' +import { withIronSession, Handler } from 'next-iron-session' const SESSION_SECRET = process.env.SESSION_SECRET || 'dev-env-default-secret-991823723' -export default function withSession(handler) { +export default function withSession(handler: Handler) { return withIronSession(handler, { password: SESSION_SECRET, cookieName: 'pfadi-bussle-cookie',