update cookie settings
This commit is contained in:
@@ -18,6 +18,7 @@ export async function oauth(fastify: FastifyInstance) {
|
|||||||
"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration",
|
"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration",
|
||||||
},
|
},
|
||||||
cookie: {
|
cookie: {
|
||||||
|
secure: true,
|
||||||
sameSite: "none",
|
sameSite: "none",
|
||||||
},
|
},
|
||||||
} as FastifyOAuth2Options);
|
} as FastifyOAuth2Options);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { FastifyError, FastifyReply, FastifyRequest } from "fastify";
|
import { FastifyReply, FastifyRequest } from "fastify";
|
||||||
import mongoose from "mongoose";
|
import mongoose from "mongoose";
|
||||||
|
|
||||||
export function errorHandler(
|
export function errorHandler(
|
||||||
|
|||||||
Reference in New Issue
Block a user