github登录失败

resolved-✅

#1

freeCodeCamp - Server Error

500 AuthorizationError: The redirect_uri MUST match the registered callback URL for this application.

User Message:

Type:

redirect to:

stack trace:

  • at Strategy.OAuth2Strategy.authenticate (/home/huluoyang/www/node_modules/passport-oauth2/lib/strategy.js:131:25)
  • at attempt (/home/huluoyang/www/node_modules/passport/lib/middleware/authenticate.js:361:16)
  • at authenticate (/home/huluoyang/www/node_modules/passport/lib/middleware/authenticate.js:362:7)
  • at config.customCallback (/home/huluoyang/www/server/component-passport.js:120:9)
  • at Layer.handle [as handle_request] (/home/huluoyang/www/node_modules/express/lib/router/layer.js:95:5)
  • at next (/home/huluoyang/www/node_modules/express/lib/router/route.js:137:13)
  • at Route.dispatch (/home/huluoyang/www/node_modules/express/lib/router/route.js:112:3)
  • at Layer.handle [as handle_request] (/home/huluoyang/www/node_modules/express/lib/router/layer.js:95:5)
  • at /home/huluoyang/www/node_modules/express/lib/router/index.js:281:22
  • at Function.process_params (/home/huluoyang/www/node_modules/express/lib/router/index.js:335:12)
  • at next (/home/huluoyang/www/node_modules/express/lib/router/index.js:275:10)
  • at /home/huluoyang/www/node_modules/express/lib/router/index.js:635:15
  • at next (/home/huluoyang/www/node_modules/express/lib/router/index.js:260:14)
  • at Function.handle (/home/huluoyang/www/node_modules/express/lib/router/index.js:174:3)
  • at router (/home/huluoyang/www/node_modules/express/lib/router/index.js:47:12)
  • at Layer.handle [as handle_request] (/home/huluoyang/www/node_modules/express/lib/router/layer.js:95:5)

#2

已修复 @ZhichengChen