pub fn create_api_token_from_secret_key( private_key: SecretKey, local_id: EndpointId, max_age: Duration, capability: Caps, ) -> Result<Rcan<Caps>>
Create an rcan token for the api access from an iroh secret key