Skip to content

Commit 245a7f4

Browse files
committed
[docs] fix http client related sections
1 parent 58ecb81 commit 245a7f4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff 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
292291
const 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
301299
const 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
456453
interface HttpClient {

0 commit comments

Comments
 (0)