Added middleware
This commit is contained in:
@@ -57,5 +57,6 @@ export const accessTokenMiddleWare = (req, res, next) => {
|
||||
const customHeaderValue = 'CustomHeader-' + data
|
||||
|
||||
res.setHeader('X-Custom-Header', customHeaderValue);
|
||||
res.cookie('customCookie', customHeaderValue, { httpOnly: true, secure: true });
|
||||
next();
|
||||
};
|
||||
Reference in New Issue
Block a user