Function diana::create_jwt [−][src]
pub fn create_jwt(
user_claims: HashMap<String, String>,
secret: &JWTSecret<'_>,
exp: u64
) -> Result<String>
Expand description
Creates a new JWT. You should use this to issue all client JWTs and create the initial JWT for communication with the subscriptions server (more information in the book).