napi-rs / node-rs

Node.js bindings ❤️ Rust crates
https://node-rs.dev
MIT License
1.03k stars 32 forks source link

Feature: decode token header #779

Closed tada5hi closed 4 months ago

tada5hi commented 5 months ago

There is no possibility to read the keyId of the token header, to pick the right key for verifying the token. Therefore, it would be great to expose the decode_header method of the jsonwebtoken crate.