Function generate_jwt

Source
pub fn generate_jwt(user_id: i64, admin: bool) -> (String, String)
Expand description

Generates a JWT and its expiry timestamp for a given user.