fix logout

This commit is contained in:
2023-07-17 19:18:16 +02:00
parent ff904b37b3
commit 59c315f6de

View File

@@ -17,7 +17,7 @@ export class LogoutHandler implements ICommandHandler<LogoutCommand> {
async execute(command: LogoutCommand) { async execute(command: LogoutCommand) {
const token = command.accessToken const token = command.accessToken
const secretKey = process.env.JWT_SECRET_KEY const secretKey = process.env.ACCESS_JWT_SECRET_KEY
if (!secretKey) throw new Error('JWT_SECRET_KEY is not defined') if (!secretKey) throw new Error('JWT_SECRET_KEY is not defined')