We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5700c8 commit 8dfd8c7Copy full SHA for 8dfd8c7
lib/resty/openidc.lua
@@ -1141,8 +1141,12 @@ local function openidc_logout(opts, session)
1141
if opts.revoke_tokens_on_logout then
1142
log(DEBUG, "revoke_tokens_on_logout is enabled. " ..
1143
"trying to revoke access and refresh tokens...")
1144
- openidc_revoke_token(opts, "refresh_token", refresh_token)
1145
- openidc_revoke_token(opts, "access_token", access_token)
+ if refresh_token then
+ openidc_revoke_token(opts, "refresh_token", refresh_token)
1146
+ end
1147
+ if access_token then
1148
+ openidc_revoke_token(opts, "access_token", access_token)
1149
1150
end
1151
1152
local headers = ngx.req.get_headers()
0 commit comments