File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import TokenManager from "./TokenManager";
2
2
import {
3
3
TokenListInstance ,
4
4
TokenListInstanceCreateOptions ,
5
- } from "../../rest/iam/v1 /token" ;
6
- import IamBase from "../../rest/IamBase " ;
7
- import V1 from "../../rest/iam/V1 " ;
5
+ } from "../../rest/oauth/v2 /token" ;
6
+ import OauthBase from "../../rest/OauthBase " ;
7
+ import V2 from "../../rest/oauth/V2 " ;
8
8
import NoAuthCredentialProvider from "../../credential_provider/NoAuthCredentialProvider" ;
9
9
import { Client } from "../../base/BaseTwilio" ;
10
10
@@ -25,7 +25,7 @@ export default class ApiTokenManager implements TokenManager {
25
25
const client = new Client ( ) ;
26
26
client . setCredentialProvider ( noAuthCredentialProvider ) ;
27
27
28
- const tokenListInstance = TokenListInstance ( new V1 ( new IamBase ( client ) ) ) ;
28
+ const tokenListInstance = TokenListInstance ( new V2 ( new OauthBase ( client ) ) ) ;
29
29
return tokenListInstance
30
30
. create ( this . params )
31
31
. then ( ( token ) => {
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import TokenManager from "./TokenManager";
2
2
import {
3
3
TokenListInstance ,
4
4
TokenListInstanceCreateOptions ,
5
- } from "../../rest/iam/v1 /token" ;
6
- import IamBase from "../../rest/IamBase " ;
7
- import V1 from "../../rest/iam/V1 " ;
5
+ } from "../../rest/oauth/v2 /token" ;
6
+ import OauthBase from "../../rest/OauthBase " ;
7
+ import V2 from "../../rest/oauth/V2 " ;
8
8
import NoAuthCredentialProvider from "../../credential_provider/NoAuthCredentialProvider" ;
9
9
import { Client } from "../../base/BaseTwilio" ;
10
10
@@ -25,7 +25,7 @@ export default class OrgsTokenManager implements TokenManager {
25
25
const client = new Client ( ) ;
26
26
client . setCredentialProvider ( noAuthCredentialProvider ) ;
27
27
28
- const tokenListInstance = TokenListInstance ( new V1 ( new IamBase ( client ) ) ) ;
28
+ const tokenListInstance = TokenListInstance ( new V2 ( new OauthBase ( client ) ) ) ;
29
29
return tokenListInstance
30
30
. create ( this . params )
31
31
. then ( ( token ) => {
You can’t perform that action at this time.
0 commit comments