mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
Send cookie on token upgrade
This commit is contained in:
parent
bb9edc4f65
commit
2d76025c9c
@ -97,6 +97,12 @@ const auth2 = async (req, res, next) => {
|
||||
req.token = new_info.token;
|
||||
req.user = new_info.user;
|
||||
req.actor = new_info.actor;
|
||||
|
||||
res.cookie(config.cookie_name, new_info.token, {
|
||||
sameSite: 'none',
|
||||
secure: true,
|
||||
httpOnly: true,
|
||||
});
|
||||
next();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user