Remove deprecated fn
This commit is contained in:
parent
2c9c57fc4b
commit
5c706b005a
|
@ -262,13 +262,6 @@ pub fn dangerous_insecure_decode_with_validation<T: DeserializeOwned>(
|
||||||
Ok(TokenData { header, claims: decoded_claims })
|
Ok(TokenData { header, claims: decoded_claims })
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Decode a JWT without any signature verification/validations. DEPRECATED.
|
|
||||||
#[deprecated(
|
|
||||||
note = "This function has been renamed to `dangerous_insecure_decode` and will be removed in a later version."
|
|
||||||
)]
|
|
||||||
pub fn dangerous_unsafe_decode<T: DeserializeOwned>(token: &str) -> Result<TokenData<T>> {
|
|
||||||
dangerous_insecure_decode(token)
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Decode a JWT without any signature verification/validations and return its [Header](struct.Header.html).
|
/// Decode a JWT without any signature verification/validations and return its [Header](struct.Header.html).
|
||||||
///
|
///
|
||||||
|
|
|
@ -16,8 +16,6 @@ mod serialization;
|
||||||
mod validation;
|
mod validation;
|
||||||
|
|
||||||
pub use algorithms::Algorithm;
|
pub use algorithms::Algorithm;
|
||||||
#[allow(deprecated)]
|
|
||||||
pub use decoding::dangerous_unsafe_decode;
|
|
||||||
pub use decoding::{
|
pub use decoding::{
|
||||||
dangerous_insecure_decode, dangerous_insecure_decode_with_validation, decode, decode_header,
|
dangerous_insecure_decode, dangerous_insecure_decode_with_validation, decode, decode_header,
|
||||||
DecodingKey, TokenData,
|
DecodingKey, TokenData,
|
||||||
|
|
Loading…
Reference in New Issue