diff --git a/src/routes/auth/callback.js b/src/routes/auth/callback.js index 59821ab..361a317 100644 --- a/src/routes/auth/callback.js +++ b/src/routes/auth/callback.js @@ -29,9 +29,16 @@ module.exports.get = () => ({ httpOnly: true, maxAge: data.expires_in, path: '/', - sameSite: 'Lax', + sameSite: 'Strict', secure: false, }); - return res.redirect(303, redirect); + res.header('Content-Type', 'text/html'); + return res.send(` + + + + + +`); }, }); diff --git a/src/routes/auth/logout.js b/src/routes/auth/logout.js index bf5908c..6399616 100644 --- a/src/routes/auth/logout.js +++ b/src/routes/auth/logout.js @@ -18,7 +18,7 @@ module.exports.get = fastify => ({ domain, httpOnly: true, path: '/', - sameSite: 'Lax', + sameSite: 'Strict', secure: false, }).send('The token has been revoked.'); },