google sign in with oauth 2.0. no more console errors or warnings
This commit is contained in:
@@ -146,11 +146,11 @@ const validateLogin = [
|
||||
|
||||
// Google auth validation
|
||||
const validateGoogleAuth = [
|
||||
body("idToken")
|
||||
body("code")
|
||||
.notEmpty()
|
||||
.withMessage("Google ID token is required")
|
||||
.isLength({ max: 2048 })
|
||||
.withMessage("Invalid token format"),
|
||||
.withMessage("Authorization code is required")
|
||||
.isLength({ max: 512 })
|
||||
.withMessage("Invalid authorization code format"),
|
||||
|
||||
handleValidationErrors,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user