Skip to content

Commit daa45c4

Browse files
committed
Merge pull request #1528 from sloppycoder/master
fix for issue #1516: OAuth logout doesn't work
2 parents 59c1003 + 00a5e4d commit daa45c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/swagger-oauth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ function handleLogin() {
167167

168168

169169
function handleLogout() {
170-
for(key in window.authorizations.authz){
171-
window.authorizations.remove(key)
170+
for(key in window.swaggerUi.api.clientAuthorizations.authz){
171+
window.swaggerUi.api.clientAuthorizations.remove(key)
172172
}
173173
window.enabledScopes = null;
174174
$('.api-ic.ic-on').addClass('ic-off');

0 commit comments

Comments
 (0)