revert: mobile auth for unblocking deployments (#49212)

This commit is contained in:
Mrugesh Mohapatra
2023-01-31 22:06:17 +05:30
committed by GitHub
parent 74b1ff96a1
commit c3103bae3d
8 changed files with 5 additions and 184 deletions

View File

@@ -77,20 +77,6 @@ export function ifUserRedirectTo(status) {
};
}
export function ifNotMobileRedirect() {
return (req, res, next) => {
//
// Todo: Use the below check once we have done more research on usage
//
// const isMobile = /(iPhone|iPad|Android)/.test(req.headers['user-agent']);
// if (!isMobile) {
// res.json({ error: 'not from mobile' });
// } else {
// next();
// }
next();
};
}
// for use with express-validator error formatter
export const createValidatorErrorHandler =
(...args) =>