Skip to content

Commit b64a3bd

Browse files
committed
Rename SecureMode to IdentityVerification within code and code examples
1 parent db246d2 commit b64a3bd

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,10 +543,10 @@ client.nextPage(response.pages, callback);
543543

544544
`intercom-node` provides a helper for using [identity verification](https://docs.intercom.com/configure-intercom-for-your-product-or-site/staying-secure/enable-identity-verification-on-your-web-product):
545545

546-
```node
547-
import {SecureMode} from 'intercom-client';
546+
``` node
547+
import { IdentityVerification } from 'intercom-client';
548548

549-
SecureMode.userHash({secretKey: 's3cre7', identifier: 'jayne@serenity.io'});
549+
IdentityVerification.userHash({secretKey: 's3cre7', identifier: 'jayne@serenity.io'});
550550
```
551551

552552
## License

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export User from './user';
33

44
import crypto from 'crypto';
55

6-
export class SecureMode {
6+
export class IdentityVerification {
77
static userHash(params) {
88
let secretKey = params.secretKey;
99
let identifier = params.identifier;

test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert';
2-
import {Client, SecureMode} from '../lib';
2+
import {Client, IdentityVerification} from '../lib';
33
import nock from 'nock';
44

55
describe('clients', () => {
@@ -21,6 +21,6 @@ describe('clients', () => {
2121
});
2222
});
2323
it('should compute user hashes', () => {
24-
assert.equal('c8acc43edc084edb8207a50320ba4ec5d113686cf8050274a305480c98512e45', SecureMode.userHash({secretKey: 'bar', identifier: 'baz'}));
24+
assert.equal('c8acc43edc084edb8207a50320ba4ec5d113686cf8050274a305480c98512e45', IdentityVerification.userHash({secretKey: 'bar', identifier: 'baz'}));
2525
});
2626
});

0 commit comments

Comments
 (0)