File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,7 @@ async function initializeJWTClient() {
133133 // Initialize client with JWT token (empty string for login, token for passwordOrToken)
134134 const jwtClient = new Client (
135135 " " , // Empty string for login when using JWT
136- jwtToken , // JWT token
137- httpFetchClient
136+ jwtToken // JWT token
138137 );
139138
140139 return jwtClient ;
@@ -291,17 +290,15 @@ The `Client` class accepts the following constructor arguments:
291290``` typescript
292291const api = new Client (
293292 process .env .ANDROID_SMS_GATEWAY_LOGIN ! , // Username
294- process .env .ANDROID_SMS_GATEWAY_PASSWORD ! , // Password
295- httpFetchClient
293+ process .env .ANDROID_SMS_GATEWAY_PASSWORD ! // Password
296294);
297295```
298296
299297** JWT Authentication:**
300298``` typescript
301299const api = new Client (
302300 " " , // Empty string for login when using JWT
303- jwtToken , // JWT token
304- httpFetchClient
301+ jwtToken // JWT token
305302);
306303```
307304
@@ -450,7 +447,7 @@ For more details, see the [`domain.ts`](./src/domain.ts).
450447
451448## 🌐 HTTP Clients
452449
453- The library doesn't come with built-in HTTP clients. Instead, you should provide your own implementation of the ` HttpClient ` interface:
450+ The library comes with fetch-based built-in HTTP client. You can provide your own implementation of the ` HttpClient ` interface:
454451
455452``` typescript
456453interface HttpClient {
You can’t perform that action at this time.
0 commit comments