We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e30f7df commit ef54603Copy full SHA for ef54603
pywebpush/__init__.py
@@ -379,7 +379,7 @@ def webpush(subscription_info,
379
url = urlparse(subscription_info.get('endpoint'))
380
aud = "{}://{}".format(url.scheme, url.netloc)
381
vapid_claims['aud'] = aud
382
- if not valid_claims.get('exp'):
+ if not vapid_claims.get('exp'):
383
# encryption lives for 12 hours
384
vapid_claims['exp'] = int(time.time()) + (12 * 60 * 60)
385
if not vapid_private_key:
0 commit comments