logout works
This commit is contained in:
parent
aaa4e8f368
commit
84612050c7
|
@ -646,13 +646,15 @@
|
||||||
, reuseWindow: opts.broker && '-broker'
|
, reuseWindow: opts.broker && '-broker'
|
||||||
, debug: opts.debug
|
, debug: opts.debug
|
||||||
}
|
}
|
||||||
).then(function (tokens) {
|
).then(function (params) {
|
||||||
if (tokens.error) {
|
OAUTH3._browser.closeFrame(params.state || opts._state, opts);
|
||||||
|
|
||||||
|
if (params.error) {
|
||||||
// TODO directives.audience
|
// TODO directives.audience
|
||||||
return OAUTH3.PromiseA.reject(OAUTH3.utils._formatError(directives.issuer /*providerUri*/, tokens));
|
return OAUTH3.PromiseA.reject(OAUTH3.utils._formatError(directives.issuer /*providerUri*/, params));
|
||||||
}
|
}
|
||||||
|
|
||||||
return tokens;
|
return params;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue