fix: ensure a scope is used
This commit is contained in:
parent
a18d88a3f1
commit
9a5a0d7a2b
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user