enable custom name for refresh token (#6890)

This commit is contained in:
j3n57h0m45
2021-07-20 15:29:11 +02:00
committed by GitHub
parent 7a7bee367a
commit 79c91ed50d
7 changed files with 17 additions and 13 deletions

View File

@@ -7,7 +7,7 @@ import env from './env';
const pinoOptions: LoggerOptions = {
level: env.LOG_LEVEL || 'info',
redact: {
paths: ['req.headers.authorization', 'req.cookies.directus_refresh_token'],
paths: ['req.headers.authorization', `req.cookies.${env.REFRESH_TOKEN_COOKIE_NAME}`],
censor: '--redact--',
},
};