Skip to main content

create_scoped_token

Function create_scoped_token 

Source
pub fn create_scoped_token(
    secret: &str,
    agent_id: &str,
    admin: bool,
    expiry_hours: u64,
    dbs: Option<Vec<String>>,
    read_only: bool,
) -> String
Expand description

Create a signed JWT limited to dbs (all when None).