fix(api): change csrf logLevel (#60371)

This commit is contained in:
Oliver Eyton-Williams
2025-05-15 16:12:29 +02:00
committed by GitHub
parent 7e76946a07
commit 7d420d9214
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ jest.mock('../utils/env', () => ({
}));
async function setupServer() {
const fastify = Fastify();
const fastify = Fastify({ logger: true });
await fastify.register(cookies);
await fastify.register(csrf);
// @ts-expect-error - @fastify/csrf-protection needs to update their types
+1 -1
View File
@@ -23,7 +23,7 @@ const csrf: FastifyPluginCallback = (fastify, _options, done) => {
// tokens since we know we can provide this one
getToken: req => req.headers[CSRF_HEADER] as string,
cookieOpts: { signed: false, sameSite: 'strict' },
logLevel: 'debug' // TODO: change to trace
logLevel: 'silent'
});
// All routes except signout should add a CSRF token to the response