@kount/kount-ivs-browser-sdk
v1.60.0
Published
Equifax Identity Toolkit is a client side library for interacting with the Digital Identity Service and ecosystem.
Readme
Kount Identifier Verification Service SDK
Browser SDK used for MFA session management and token storage.
Please see the official documentation in Kount Developer.
Installation
npm install @kount/kount-ivs-browser-sdkSDK Configuration
import kount from '@kount/kount-ivs-browser-sdk'
export default (() => {
return {
routes: [...],
environment: 'sandbox',
kountClientId: '900900',
} as Partial<kount.Configuration>
})()Initialization
kount
.init(config)
.then(() => {
console.debug(`Finalized config: ${JSON.stringify(config, null, 2)}`);
})
.catch((err) => {
console.warn(err);
this.router.navigateByUrl('/error');
});Verify OTP Example
import kount, {
VerificationConfig,
VerifyResponse,
} from '@kount/kount-ivs-browser-sdk';
async function verifyOtp(otp: string) {
kount.verification
.verifyOtpRest(otp)
.then(async (res: VerifyResponse) => {
window.location.href = res.getRedirectUri();
})
.catch((err) => {
console.warn(err);
});
}API Reference
For complete API documentation, please refer to our API Reference Guide.
