web-push-libs / pywebpush

Python Webpush Data encryption library
Mozilla Public License 2.0
305 stars 52 forks source link

webpush(): Allow passing Vapid instance #78

Closed leorochael closed 6 years ago

leorochael commented 6 years ago

If the caller of webpush() already has a py_vapid.Vapid instance lying around, allow passing it as the vapid_private_key argument instead of forcing the developer to go back to the private key string just to regenerate a Vapid instance.