From 4d42269a35b485e04a03df85e7c61a7d5e1282ef Mon Sep 17 00:00:00 2001 From: Isaac Date: Wed, 3 Jul 2024 01:39:08 +0100 Subject: [PATCH] feat(api): redirect on logout --- src/routes/auth/logout.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/routes/auth/logout.js b/src/routes/auth/logout.js index 63996165..65a19c6b 100644 --- a/src/routes/auth/logout.js +++ b/src/routes/auth/logout.js @@ -20,7 +20,15 @@ module.exports.get = fastify => ({ path: '/', sameSite: 'Strict', secure: false, - }).send('The token has been revoked.'); + }); + res.header('Content-Type', 'text/html'); + return res.send(` + + + + + +`); }, onRequest: [fastify.authenticate], });