mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-02-23 18:51:29 +02:00
feat(api): redirect on logout
This commit is contained in:
parent
8818bf6d48
commit
4d42269a35
@ -20,7 +20,15 @@ module.exports.get = fastify => ({
|
|||||||
path: '/',
|
path: '/',
|
||||||
sameSite: 'Strict',
|
sameSite: 'Strict',
|
||||||
secure: false,
|
secure: false,
|
||||||
}).send('The token has been revoked.');
|
});
|
||||||
|
res.header('Content-Type', 'text/html');
|
||||||
|
return res.send(`
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head><meta http-equiv="refresh" content="0; url='/'"></head>
|
||||||
|
<body></body>
|
||||||
|
</html>
|
||||||
|
`);
|
||||||
},
|
},
|
||||||
onRequest: [fastify.authenticate],
|
onRequest: [fastify.authenticate],
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user