google sign in with oauth 2.0. no more console errors or warnings
This commit is contained in:
1 parent
299522b3a6
commit
052781a0e6
8 files changed
+186
-93
No files matched your search
@@ -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