fix: ensure a scope is used

This commit is contained in:
Julien Fontanet 2017-06-02 10:20:20 +02:00
parent a18d88a3f1
commit 9a5a0d7a2b

View File

@ -38,7 +38,11 @@ class AuthGoogleXoPlugin {
}
load () {
const conf = this._conf
const conf = {
// TODO: find a better way to inject default values
scope: configurationSchema.properties.scope.default,
...this._conf
}
const xo = this._xo
xo.registerPassportStrategy(new Strategy(conf, async (accessToken, refreshToken, profile, done) => {