mikkyang / rust-jwt

JSON Web Token library for Rust
MIT License
178 stars 38 forks source link

Updating the typ field to allow any string #84

Open Will-Low opened 2 years ago

Will-Low commented 2 years ago

Per RFC 7519 § 5.1, the typ field value is recommended to be set to "JWT". However, not all JWT-issuing systems follow this convention; for example, Identity Server 4 uses "at+jwt".

This PR updates the typ field to be able to accommodate any arbitrary string.

Will-Low commented 2 years ago

@mikkyang for your review