Skip to content

Commit d96e5c2

Browse files
committed
tweak
1 parent a432406 commit d96e5c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/openidc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ local function openidc_access_token(opts, session, try_to_renew)
11131113
session:start()
11141114
session.data.access_token = json.access_token
11151115
session.data.access_token_expiration = current_time + openidc_access_token_expires_in(opts, json.expires_in)
1116-
if json.refresh_token ~= nil then
1116+
if json.refresh_token then
11171117
session.data.refresh_token = json.refresh_token
11181118
end
11191119

0 commit comments

Comments
 (0)