mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
fix type warning in session
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
import { withIronSession } from 'next-iron-session'
|
import { withIronSession, Handler } from 'next-iron-session'
|
||||||
|
|
||||||
const SESSION_SECRET =
|
const SESSION_SECRET =
|
||||||
process.env.SESSION_SECRET || 'dev-env-default-secret-991823723'
|
process.env.SESSION_SECRET || 'dev-env-default-secret-991823723'
|
||||||
|
|
||||||
export default function withSession(handler) {
|
export default function withSession(handler: Handler) {
|
||||||
return withIronSession(handler, {
|
return withIronSession(handler, {
|
||||||
password: SESSION_SECRET,
|
password: SESSION_SECRET,
|
||||||
cookieName: 'pfadi-bussle-cookie',
|
cookieName: 'pfadi-bussle-cookie',
|
||||||
|
|||||||
Reference in New Issue
Block a user