Skip to content

Commit

Permalink
add documentation for jwt token (#28)
Browse files Browse the repository at this point in the history
Co-authored-by: Taran Romana <[email protected]>
  • Loading branch information
holy-batman and Taran Romana authored Feb 17, 2021
1 parent 5b2a3aa commit e445fa7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ The library provides multiple ways to interact with it. The quick start example
</script>
```

When using jwt authentication we just need to have jwt token in authentication section.
If jwt token is used, username and password will be ignored.

```
authentication: {
jwt: "jwt_token"
},
```

> This assumes the HTML body will contain empty elements with the IDs "dialpad", "call_list", "call_control", "media_devices", "audio_context" and "user_agent" where the corresponding default elements should be generated by libwebphone.
## NPM Scripts
Expand Down

0 comments on commit e445fa7

Please sign in to comment.