From 569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a Mon Sep 17 00:00:00 2001 From: piotrruss Date: Mon, 6 Sep 2021 23:13:22 +0200 Subject: added stadard linter --- hocs/withSession.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hocs/withSession.js') diff --git a/hocs/withSession.js b/hocs/withSession.js index 0361db3..fc8f40d 100644 --- a/hocs/withSession.js +++ b/hocs/withSession.js @@ -1,14 +1,14 @@ // this file is a wrapper with defaults to be used in both API routes and `getServerSideProps` functions -import {withIronSession} from 'next-iron-session' +import { withIronSession } from 'next-iron-session' -export default function withSession(handler) { +export default function withSession (handler) { return withIronSession(handler, { password: process.env.MYAPPS_SECRET_COOKIE_PASSWORD, cookieName: 'myapps_session', cookieOptions: { // the next line allows to use the session in non-https environments like // Next.js dev mode (http://localhost:3000) - secure: process.env.NODE_ENV === 'production' ? true : false, - }, + secure: process.env.NODE_ENV === 'production' + } }) } -- cgit v1.2.3