Function autoendpoint::extractors::subscription::decode_public_key
source ยท fn decode_public_key(public_key: &str) -> Result<Vec<u8>, ApiError>
Expand description
Decode a public key string
NOTE: Some customers send a VAPID public key with incorrect padding and in standard base64 encoding. (Both of these violate the VAPID RFC) Prior python versions ignored these errors, so we should too.