💳 Support payments with Stripe (#822)

This commit is contained in:
Luke Vella 2023-08-23 15:29:40 +01:00 committed by GitHub
parent 969ae35971
commit 6f425edeaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 712 additions and 229 deletions

View file

@ -1,8 +1,11 @@
import type { IncomingMessage, ServerResponse } from "http";
import { getIronSession } from "iron-session/edge";
import { NextRequest, NextResponse } from "next/server";
import { sessionConfig } from "../session-config";
export const getSession = async (req: NextRequest, res: NextResponse) => {
export const getSession = async (
req: Request | IncomingMessage,
res: Response | ServerResponse,
) => {
return getIronSession(req, res, sessionConfig);
};