Update beps/0003-auth-architecture-evolution/README.md

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-02-27 01:44:23 +01:00
committed by GitHub
parent 05a4bbb5d0
commit 2e37491808
@@ -232,7 +232,7 @@ export default createBackendPlugin({
// Endpoint that sets the cookie for the user
router.get('/cookie', async (req, res) => {
const { expiresAt } = await httpAuth.issueUserCookie(req);
const { expiresAt } = await httpAuth.issueUserCookie(res);
res.json({ expiresAt: expiresAt.toISOString() });
});