diff --git a/oauth3.core.js b/oauth3.core.js index ea00f3d..a9436e0 100644 --- a/oauth3.core.js +++ b/oauth3.core.js @@ -1184,7 +1184,7 @@ opts.api = api; opts.session = OAUTH3.hooks.session._getCached(this._providerUri); - return OAUTH3.api(this._providerUri, opts); + return OAUTH3.api(this._providerDirectives.api, opts); } }; result.authenticate = result.login;