pub fn user_auth_expire_date(storage_service: &mut StorageService) -> Result<NaiveDateTime, Error> {
    let token = restore_jwt(storage_service)?;
    let payload = extract_payload_from_jwt(&token)?;
    Ok(payload.exp)
}
/// Gets the expiry date from the token.
Gets the expiry date from the token.
Gets the expiry date from the token .
pub fn user_auth_expire_date(storage_service: &mut StorageService) -> Result<NaiveDateTime, Error> {
    let token = restore_jwt(storage_service)?;
    let payload = extract_payload_from_jwt(&token)?;
    Ok(payload.exp)
}
pub fn user_auth_expire_date ( storage_service : & mut StorageService ) -> Result < NaiveDateTime , Error > { let token = restore_jwt ( storage_service ) ? ; let payload = extract_payload_from_jwt ( & token ) ? ; Ok ( payload . exp ) }
Gets the expiry date from the token.
Gets the expiry date from the token .
storage_service
&mut StorageService
storage_service
&mut StorageService