From 0dd70c57cdc0b2383ef8428c340fef670d444954 Mon Sep 17 00:00:00 2001 From: Julien Fontanet Date: Fri, 16 Dec 2016 09:48:19 +0100 Subject: [PATCH] chore: factory function pass options directly --- packages/xo-server-auth-google/src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/xo-server-auth-google/src/index.js b/packages/xo-server-auth-google/src/index.js index 0cd61d17f..364f1cad0 100644 --- a/packages/xo-server-auth-google/src/index.js +++ b/packages/xo-server-auth-google/src/index.js @@ -35,7 +35,7 @@ class AuthGoogleXoPlugin { } load () { - const {_xo: xo} = this + const xo = this._xo xo.registerPassportStrategy(new Strategy(this._conf, async (accessToken, refreshToken, profile, done) => { try { @@ -50,4 +50,4 @@ class AuthGoogleXoPlugin { // =================================================================== -export default ({xo}) => new AuthGoogleXoPlugin(xo) +export default opts => new AuthGoogleXoPlugin(opts)