You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use Vonage JWT generator instead of PyJWT for requests (#262)
* use Vonage JWT generator instead of PyJWT for requests
* adding new test for multiple workflows in verify v2 (#263)
* updating the changelog for new release
* Bump version: 3.5.1 → 3.5.2
* updating the changelog for new release
* internal refactoring to check for new Client._jwt_client object
* removing superseded check
* removing potentially misleading message
@@ -728,34 +727,32 @@ your account before you can validate webhook signatures.
728
727
729
728
## JWT parameters
730
729
731
-
By default, the library generates short-lived tokens for JWT authentication.
730
+
By default, the library generates 15-minute tokens for JWT authentication.
732
731
733
-
Use the auth method to specify parameters for a longer life token or to
734
-
specify a different token identifier:
732
+
Use the `auth` method of the client class to specify custom parameters:
735
733
736
734
```python
737
735
client.auth(nbf=nbf, exp=exp, jti=jti)
736
+
# OR
737
+
client.auth({'nbf': nbf, 'exp': exp, 'jti': jti})
738
738
```
739
739
740
740
## Overriding API Attributes
741
741
742
-
In order to rewrite/get the value of variables used across all the Vonage classes Python uses `Call by Object Reference` that allows you to create a single client for Sms/Voice Classes. This means that if you make a change on a client instance this will be available for the Sms class.
742
+
In order to rewrite/get the value of variables used across all the Vonage classes Python uses `Call by Object Reference` that allows you to create a single client to use with all API classes.
743
743
744
744
An example using setters/getters with `Object references`:
0 commit comments