The Credentials Object
To conduct a test or render its results, initialize an AutoProctor object with a credentials object containing the following keys:
| Key | Value | Required | Description |
|---|---|---|---|
clientId | str | Yes | Unique identifier for your organization. Provided by AutoProctor. |
testAttemptId | str | Yes | The test attempt ID as identified by your database. (max 40 characters) |
hashedTestAttemptId | str | Yes | The 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.