Skip to main content

create_grant_token

Function create_grant_token 

Source
pub fn create_grant_token(
    local_secret: SecretKey,
    remote_id: EndpointId,
    max_age: Duration,
    capability: Caps,
) -> Result<Rcan<Caps>>
Expand description

Create an rcan token that grants capabilities to a remote endpoint. The local endpoint is the issuer (granter), and the remote endpoint is the audience (grantee).