corsac-dart / jwt

Lightweight implementation of JSON Web Tokens (JWT)
BSD 2-Clause "Simplified" License
45 stars 28 forks source link

Allow access to headers. #13

Closed Jonas-Sander closed 4 years ago

Jonas-Sander commented 4 years ago

Firebase Auth creates a JWT with a "kid"-header claim which I want to read.
JWT does not expose its internal _headers map though, which forces me to decrypt encodedHeader a second time in order to read the kid.