Guides
Demo

Force Reacceptance

Verify User's Compliance

To check if a user has agreed to the latest Version of the Documents in a Packet, you can use the verify(userId) function.

TC.verify({userId})

This function returns a Promise<TCVerificationResponse> defined as:

export class TCVerificationResponse {
  displayName: string = "";
  id: string = "";
  documents: TCDocumentVerificationResponse[] = [];
  userCompliant: boolean = false;
}

interface TCDocumentVerificationResponse {
  id: string;
  displayName: string;
  latestVersion: string;
  latestAgreement: string;
}

Determine if User Requires Reacceptance

To determine if the signer requires reacceptance, you can check the userCompliant field in the response. If this is true, then the user does not need create a new Acceptance. If the field is false, then the user must reagree to the Terms.

Create Reacceptance

To create the Acceptance for the new Version, you can simply reload the ToughClicks library as described in Getting Started