You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
As it seems like 'validator' module version has been set to its latest in dependencies and as a result validation logic written in login.js and registration.js` files are not functioning now:
api-proxy: login-app
package.json
"name": "oauth-login-consent",
"version": "1.0.1",
"description": "Lightweight web app to support OAuth2 authorization_code grant login/consent flow.",
"main": "app.js",
"repository": "https://github.com/apigee/api-platform-samples.git",
"dependencies": {
"apigee-access": "^1.3.0",
"body-parser": "^1.9.2",
"cookie-parser": "^1.3.3",
"ejs-locals": "^1.0.2",
"express": "^4.10.2",
"express-session": "^1.9.1",
"less-middleware": "^0.1.12",
"serve-favicon": "^2.1.6",
"validator": ">2.0.0"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Apigee Corporation",
"license": "MIT"
}
Error:
TypeError: org.mozilla.javascript.Undefined@0 is not a function, it is undefined.
at /organization/environment/api/routes/registration.js:117:0
at /organization/environment/api/routes/registration.js:24:0
at handle (/organization/environment/api/node_modules/express/lib/router/layer.js:95:0)
at next (/organization/environment/api/node_modules/express/lib/router/route.js:137:0)
at dispatch (/organization/environment/api/node_modules/express/lib/router/route.js:112:0)
at handle (/organization/environment/api/node_modules/express/lib/router/layer.js:95:0)
at /organization/environment/api/node_modules/express/lib/router/index.js:281:0
at process_params (/organization/environment/api/node_modules/express/lib/router/index.js:335:0)
at next (/organization/environment/api/node_modules/express/lib/router/index.js:275:0)
at /organization/environment/api/node_modules/body-parser/lib/read.js:130:0
at invokeCallback (/organization/environment/api/node_modules/raw-body/index.js:224:0)
at done (/organization/environment/api/node_modules/raw-body/index.js:213:0)
at onEnd (/organization/environment/api/node_modules/raw-body/index.js:273:0)
at emit (events.js:92:0)
at _stream_readable.js:943:0
at _tickDomainCallback (trireme.js:491:0)
at _tickFromSpinner (trireme.js:422:0)
As it seems like 'validator' module version has been set to its latest in dependencies and as a result validation logic written in
login.jsand registration.js` files are not functioning now:api-proxy: login-app
package.json
Error: