diff --git a/app.ts b/app.ts index 63d6910..c0a9997 100644 --- a/app.ts +++ b/app.ts @@ -27,7 +27,8 @@ export default (app: Application) => { appId: config.key, appSecret: config.secret, redirectUri: config.callbackURL, - state: state + state: state, + logger: config.logger || app.logger }, ( req: any, diff --git a/package-lock.json b/package-lock.json index 6c3ca0a..6014a29 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13396,9 +13396,9 @@ } }, "passport-citi": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/passport-citi/-/passport-citi-1.2.0.tgz", - "integrity": "sha512-ZpmHqR3VkqiaMUvy+zv64V6O7hcV7Rdnl52FB0taThbPvlnO25GwmN6RaXaCzb+yVWWew9C+T31rmQvlcgdf+w==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/passport-citi/-/passport-citi-1.3.0.tgz", + "integrity": "sha512-uwDQHvf6YFPe7BgjTeLf54No6VIQziVyaSKE+SLKEo/c8kcgAXhvucm8EpYRxVl97ARBmlbFulPb50eAdiM5Ag==", "requires": { "citi-oauth": "1.3.0", "debug": "^4.1.1", diff --git a/package.json b/package.json index a3683c4..cf1fcd4 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "dependencies": { "debug": "^2.6.1", "egg-passport": "^2.0.1", - "passport-citi": "1.2.0", + "passport-citi": "1.3.0", "uuid": "^3.3.2" }, "devDependencies": {