#Next-Connect help!

6 messages · Page 1 of 1 (latest)

hot crater
#

Hi, i'm using next-connect for my project, and i have an error everytime, i will link a picture for it. My code is down below:

import { NextApiRequest, NextApiResponse } from "next";
import type { SteamProfile } from "./passport";

import passport from "./passport";

import nextConnect from "next-connect";
import session from "cookie-session";

export type NextSteamAuthApiRequest = NextApiRequest & {user: SteamProfile}; 

const router = nextConnect<NextApiRequest, NextApiResponse>(); -- basically no nextConnect found :/

router.use(session({
    secret: process.env.SESSION_SECRET,
    maxAge: 1000 * 60 * 60 * 24 * 30 // 30 days
}));


// Passport
router.use(passport.initialize());
router.use(passport.session());

export default router; 

thanks!

frosty sableBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

obsidian osprey
hot crater
obsidian osprey
#

Considering the latest release is v1.0.0, I would use that

hot crater
#

tought so :/