Skip to content

Commit 992efed

Browse files
authored
Mention mutable vapid_claims in README (see #130) (#144)
1 parent b599153 commit 992efed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ not all User Agents can decrypt `'aesgcm'`, so the library defaults to the RFC 8
7373

7474
_vapid_claims_ - a `dict` containing the VAPID claims required for authorization (See
7575
[py_vapid](https://github.com/web-push-libs/vapid/tree/master/python) for more details). If `aud` is not specified,
76-
pywebpush will attempt to auto-fill from the `endpoint`.
76+
pywebpush will attempt to auto-fill from the `endpoint`. If `exp` is not specified or set in the past, it will be set
77+
to 12 hours from now. In both cases, the passed `dict` **will be mutated** after the call.
7778

7879
_vapid_private_key_ - Either a path to a VAPID EC2 private key PEM file, or a string containing the DER representation.
7980
(See [py_vapid](https://github.com/web-push-libs/vapid/tree/master/python) for more details.) The `private_key` may be

0 commit comments

Comments
 (0)