Commit d5ca55f9 authored by Stan Hu's avatar Stan Hu
Browse files

Fix refresh to lazily load connection

parent 3133bf050549
......@@ -45,8 +45,7 @@
@expires_at = response.expires_at
@expires_in = response.expires_in
@refresh_token = response.refresh_token
@connection = OAuth2::AccessToken.new(@client, @token, refresh_token: @refresh_token, expires_at: @expires_at, expires_in: @expires_in)
@connection = nil
end
private
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment