create

Function create 

Source
pub fn create(config: BTreeMap<i32, CborValue>) -> CborValue
Expand description

Creates a CATDPOP claim with DPoP configuration

ยงExample

use common_access_token::cat_claims::catdpop;
use std::collections::BTreeMap;

let mut dpop_config = BTreeMap::new();
dpop_config.insert(0, common_access_token::CborValue::Integer(1)); // version
dpop_config.insert(1, common_access_token::CborValue::Text("RS256".to_string())); // algorithm
let catdpop_claim = catdpop::create(dpop_config);