JWT jwt;
jwt.header = "{\"alg\":\"HS256\",\"typ\":\"JWT\"}";
jwt.payload = "{\"sub\":\"1234567890\",\"name\":\"John Doe\",\"admin\":true}";
jwt.signature = "secret";
auto signingInput = base64encode(jwt.header)+"."+base64encode(jwt.payload);//+"."+base64encode(jwt.signature);
auto byteSignature = cuv1::hmac_sha256_asBytes(signingInput, jwt.signature);
auto signature = base64encode(reinterpret_cast<const char*>(byteSignature.data()), byteSignature.size());
auto jwt = signingInput + "." + signature;