update cookie settings

This commit is contained in:
2025-01-06 14:58:09 +05:30
parent 14c9b0210c
commit 7d88bb1e13
2 changed files with 2 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ export async function oauth(fastify: FastifyInstance) {
"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration",
},
cookie: {
secure: true,
sameSite: "none",
},
} as FastifyOAuth2Options);

View File

@@ -1,4 +1,4 @@
import { FastifyError, FastifyReply, FastifyRequest } from "fastify";
import { FastifyReply, FastifyRequest } from "fastify";
import mongoose from "mongoose";
export function errorHandler(