sentc-crypto-light 0.14.0

The main implementation of the sentc light sdk.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod group;
pub mod user;

use sentc_crypto_common::user::Claims;

#[cfg(not(feature = "export"))]
pub(crate) type JwtRes = Result<Claims, crate::error::SdkLightError>;

#[cfg(feature = "export")]
pub(crate) type JwtRes = Result<Claims, alloc::string::String>;

#[allow(clippy::needless_question_mark)]
pub fn decode_jwt(token: &str) -> JwtRes
{
	Ok(sentc_crypto_utils::jwt::decode_jwt(token)?)
}