Skip to content

Commit 7b45703

Browse files
committed
Add jwt instructions
1 parent 82b8caf commit 7b45703

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ client.suggestions('a', callback);
5858
client.useFuzzyMatch(false);
5959
```
6060

61+
#### Set JSON Web Token (for authentication)
62+
```js
63+
// Add JWT to the HTTPS request (if protected search index)
64+
client.setJWT(token);
65+
```
66+
6167
#### Define language filter
6268
```js
6369
// Documents in specific language (e.g. "en" or "de")

0 commit comments

Comments
 (0)