pimeys / rust-web-push

A Web Push library for Rust
Apache License 2.0
113 stars 21 forks source link

Custom 'aud' claim is formatted incorrectly when added to JWT. #50

Closed summonmayank closed 1 year ago

summonmayank commented 1 year ago

Added the claim to signature builder like this: sig_builder.add_claim("aud", "https://updates.push.services.mozilla.com");

On decoding JWT from authorization header:

Screen Shot 2023-07-26 at 4 20 42 PM

Seems like String needs to be converted into a "string slice" str.