Module subscription

Source

Structsยง

Subscription
Extracts subscription data from TokenInfo and verifies auth/crypto headers

Functionsยง

decode_public_key ๐Ÿ”’
Decode a public key string
extract_public_key ๐Ÿ”’
Extract the VAPID public key from the headers
parse_vapid ๐Ÿ”’
Parse the authorization header for VAPID data and update metrics
repad_base64 ๐Ÿ”’
Add back padding to a base64 string
term_to_label ๐Ÿ”’
validate_vapid_jwt ๐Ÿ”’
Validate the VAPID JWT token. Specifically,
version_1_validation ๐Ÿ”’
/webpush/v1/ validations
version_2_validation ๐Ÿ”’
/webpush/v2/ validations