@@ -91,7 +91,7 @@ export class ApiClient {
9191            throw  new  Error ( "Not authenticated. Please run the auth tool first." ) ; 
9292        } 
9393
94-         const  url  =  new  URL ( `api/atlas/v2${ endpoint }  ` ,  `${ config . apiBaseURL }  ` ) ; 
94+         const  url  =  new  URL ( `api/atlas/v2${ endpoint }  ` ,  `${ config . apiBaseUrl }  ` ) ; 
9595
9696        if  ( ! this . checkTokenExpiry ( ) )  { 
9797            await  this . refreshToken ( ) ; 
@@ -119,7 +119,7 @@ export class ApiClient {
119119    async  authenticate ( ) : Promise < OauthDeviceCode >  { 
120120        const  endpoint  =  "api/private/unauth/account/device/authorize" ; 
121121
122-         const  authUrl  =  new  URL ( endpoint ,  config . apiBaseURL ) ; 
122+         const  authUrl  =  new  URL ( endpoint ,  config . apiBaseUrl ) ; 
123123
124124        const  response  =  await  fetch ( authUrl ,  { 
125125            method : "POST" , 
@@ -128,7 +128,7 @@ export class ApiClient {
128128                Accept : "application/json" , 
129129            } , 
130130            body : new  URLSearchParams ( { 
131-                 client_id : config . clientID , 
131+                 client_id : config . clientId , 
132132                scope : "openid profile offline_access" , 
133133                grant_type : "urn:ietf:params:oauth:grant-type:device_code" , 
134134            } ) . toString ( ) , 
@@ -143,14 +143,14 @@ export class ApiClient {
143143
144144    async  retrieveToken ( device_code : string ) : Promise < OAuthToken >  { 
145145        const  endpoint  =  "api/private/unauth/account/device/token" ; 
146-         const  url  =  new  URL ( endpoint ,  config . apiBaseURL ) ; 
146+         const  url  =  new  URL ( endpoint ,  config . apiBaseUrl ) ; 
147147        const  response  =  await  fetch ( url ,  { 
148148            method : "POST" , 
149149            headers : { 
150150                "Content-Type" : "application/x-www-form-urlencoded" , 
151151            } , 
152152            body : new  URLSearchParams ( { 
153-                 client_id : config . clientID , 
153+                 client_id : config . clientId , 
154154                device_code : device_code , 
155155                grant_type : "urn:ietf:params:oauth:grant-type:device_code" , 
156156            } ) . toString ( ) , 
@@ -179,15 +179,15 @@ export class ApiClient {
179179
180180    async  refreshToken ( token ?: OAuthToken ) : Promise < OAuthToken  |  null >  { 
181181        const  endpoint  =  "api/private/unauth/account/device/token" ; 
182-         const  url  =  new  URL ( endpoint ,  config . apiBaseURL ) ; 
182+         const  url  =  new  URL ( endpoint ,  config . apiBaseUrl ) ; 
183183        const  response  =  await  fetch ( url ,  { 
184184            method : "POST" , 
185185            headers : { 
186186                "Content-Type" : "application/x-www-form-urlencoded" , 
187187                Accept : "application/json" , 
188188            } , 
189189            body : new  URLSearchParams ( { 
190-                 client_id : config . clientID , 
190+                 client_id : config . clientId , 
191191                refresh_token : ( token  ||  this . token ) ?. refresh_token  ||  "" , 
192192                grant_type : "refresh_token" , 
193193                scope : "openid profile offline_access" , 
@@ -213,7 +213,7 @@ export class ApiClient {
213213
214214    async  revokeToken ( token ?: OAuthToken ) : Promise < void >  { 
215215        const  endpoint  =  "api/private/unauth/account/device/token" ; 
216-         const  url  =  new  URL ( endpoint ,  config . apiBaseURL ) ; 
216+         const  url  =  new  URL ( endpoint ,  config . apiBaseUrl ) ; 
217217        const  response  =  await  fetch ( url ,  { 
218218            method : "POST" , 
219219            headers : { 
@@ -222,7 +222,7 @@ export class ApiClient {
222222                "User-Agent" : config . userAgent , 
223223            } , 
224224            body : new  URLSearchParams ( { 
225-                 client_id : config . clientID , 
225+                 client_id : config . clientId , 
226226                token : ( token  ||  this . token ) ?. access_token  ||  "" , 
227227                token_type_hint : "refresh_token" , 
228228            } ) . toString ( ) , 
0 commit comments