pub fn user_id(storage: &mut StorageService) -> Result<UserUuid, Error> {
    let token = restore_jwt(storage)?;
    let payload = extract_payload_from_jwt(&token)?;
    Ok(payload.sub)
}
/// Gets the user uuid from the token.
Gets the user uuid from the token.
Gets the user uuid from the token .
pub fn user_id(storage: &mut StorageService) -> Result<UserUuid, Error> {
    let token = restore_jwt(storage)?;
    let payload = extract_payload_from_jwt(&token)?;
    Ok(payload.sub)
}
pub fn user_id ( storage : & mut StorageService ) -> Result < UserUuid , Error > { let token = restore_jwt ( storage ) ? ; let payload = extract_payload_from_jwt ( & token ) ? ; Ok ( payload . sub ) }
Gets the user uuid from the token.
Gets the user uuid from the token .
storage
&mut StorageService
storage
&mut StorageService