lib/neetob/cli/github/auth.rb in neetob-0.1.4 vs lib/neetob/cli/github/auth.rb in neetob-0.1.5

- old
+ new

@@ -39,11 +39,11 @@ open_url_in_browser!(auth_data[:verification_uri]) poll_for_token(auth_data) end def request_authorization - post(uris["auth_req"], params: { client_id: client_id, scope: scope }) + post(uris["auth_req"], params: { client_id:, scope: }) end private def show_user_code(code) @@ -85,12 +85,12 @@ interval = auth_data[:interval] loop do res = post( uris["token_req"], params: { - client_id: client_id, + client_id:, device_code: auth_data[:device_code], - grant_type: grant_type + grant_type: } ) if res.key?(:error) case res[:error]