The Credentials Object

To conduct a test or render its results, initialize an AutoProctor object with a credentials object containing the following keys:

KeyValueRequiredDescription
clientIdstrYesUnique identifier for your organization. Provided by AutoProctor.
testAttemptIdstrYesThe test attempt ID as identified by your database. (max 40 characters)
hashedTestAttemptIdstrYesThe hash of testAttemptId as computed using your CLIENT_SECRET. See How Hashing Works.

Example

const credentials = {
    clientId: 'your-client-id',
    testAttemptId: 'unique-test-attempt-id',
    hashedTestAttemptId: 'a1b2c3d4e5...' // computed by your backend
}

let apInst = new AutoProctor(credentials)

Once you have the credentials object, you're ready to configure proctoring options and start the proctoring lifecycle.