From 9b3ea665f9408b5789d9f85bcb4fbe19584e9059 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Wed, 28 Oct 2020 23:33:29 +0100 Subject: [PATCH] fix type warning in session --- lib/session.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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',