Skip to content

Commit

Permalink
fix: revert ironSession middleware, to be added at app level
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-may committed Jan 4, 2023
1 parent e0d8a6c commit 0defb59
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/express/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import express from "express";
import { IronSessionOptions } from "iron-session";
import { ironSession } from "iron-session/express";
import { getSession, methodNotAllowed, notFound, signIn, signOut } from "../api.js";

export const authRouter = (ironOptions: IronSessionOptions) => {
export const authRouter = () => {
const router = express.Router();

router.use(ironSession(ironOptions));

router.route('/')
.get(getSession)
.all(methodNotAllowed);
Expand Down

0 comments on commit 0defb59

Please sign in to comment.