Revoke a credential
You can revoke a credential from a users profile using the issuance token. This requires no interaction from the user and will automatically update the Yoti app. The user will no longer be able to share or use the Yoti credential.
x
const payload = new Payload({
issuance_token: attributeIssuanceDetails.getToken(),
name: 'com.example.someAttribute',
});
const request = new RequestBuilder()
.withBaseUrl('https://api.yoti.com/api/v1/attribute-registry')
.withEndpoint('/attribute/revoke')
.withPemString('PEM_CONTENT')
.withHeader('X-Yoti-Auth-Id', 'CLIENT_SDK_ID')
.withMethod('PUT')
.withPayload(payload)
.build();
const response = await request.execute();
Was this page helpful?