-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
export const session = nextAppSession<MySessionData>({
// Options
name: 'SID',
secret: process.env.JWT_SECRET,
cookie: {
httpOnly: process.env.NODE_ENV == 'production',
secure: process.env.NODE_ENV == 'production',
sameSite: 'strict',
expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 7), // 1 week
},
});
I would like to set the session manually. Unfortunately, this does not work.
export type CookieOptions = {
httpOnly: boolean;
path: string;
domain?: string | undefined;
secure: boolean;
sameSite?: boolean | 'lax' | 'strict' | 'none';
maxAge?: number;
expires?: Date | null;
};
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working