Keats / jsonwebtoken

JWT lib in rust
MIT License
1.69k stars 269 forks source link

Why is `EncodingKey`'s `content` attribute private? #223

Closed Xithrius closed 2 years ago

Xithrius commented 2 years ago

It doesn't seem like there's any way to access content.

Would it be possible to make it public, or is there a reason to keep it's current state?

Thanks!

Keats commented 2 years ago

Any reason to be able to access it? Those structs are not meant to be used outsde of encode/decode

Xithrius commented 2 years ago

@Keats Thanks for the quick response! Originally I'd use this for octocrab's create_jwt function, but I've realized that it's written differently than the one on docs.rs, leading to confusion.

There is no need for access of this attribute, I was interpreting how to use the function incorrectly based on inconsistent sources.

Thank you for the creation of this crate. Have a good one!