Skip to content

Commit 07ec2f3

Browse files
chore: change oauth token endpoint
1 parent eb0b229 commit 07ec2f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/twilio-ruby/http/org_token_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def initialize(grant_type, client_id, client_secret, code = nil, redirect_uri =
1919

2020
def fetch_access_token
2121
client = Twilio::REST::Client.new
22-
token_instance = client.iam.v1.token.create(grant_type: @grant_type,
22+
token_instance = client.oauth.v2.token.create(grant_type: @grant_type,
2323
client_id: @client_id, client_secret: @client_secret)
2424
token_instance.access_token
2525
end

0 commit comments

Comments
 (0)