fix(configure): do not modify passed configuration

This commit is contained in:
Julien Fontanet 2016-12-16 09:47:56 +01:00
parent 9b93a47e45
commit df0aa1c46d

View File

@ -22,14 +22,16 @@ export const configurationSchema = {
// =================================================================== // ===================================================================
class AuthGoogleXoPlugin { class AuthGoogleXoPlugin {
constructor (xo) { constructor ({ xo }) {
this._conf = null
this._xo = xo this._xo = xo
} }
configure (conf) { configure (conf) {
conf.scope = 'https://www.googleapis.com/auth/plus.login' this._conf = {
...conf,
this._conf = conf scope: 'https://www.googleapis.com/auth/plus.login'
}
} }
load () { load () {