Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 2.67 KB

adaptive-script-description.md

File metadata and controls

37 lines (25 loc) · 2.67 KB

TypingDNA adaptive script documentation

Adaptive script parameters description

verifyUserWithTypingDNA function is used to verify the users typing behaviour with typingdna and returns the following parameters with data.

No Parameter Description Sample values
1 data.result A boolean, indicates whether a user's typing pattern is matched with previously enrolled typing patterns True - Typing patterns matched
False - Typing patterns not matched
2 data.score A number, between 0 - 100 indicates how well the typing pattern matches with previously enrolled patterns 0 - Poor matching
100 - Well matching
3 data.confidence A number, between 0-100 indicates how much confidence TypingDNA has in their result. Can be the measure of accuracy 0 - Poor confidence
100 - Good confidence
4 data.comparedPatterns A number, between 1-20 indicates how many previously enrolled patterns were used to verify current typing pattern 1 - minimum patterns
20 - Maximum patterns
5 data.isTypingPatternReceived A boolean, indicates whether the typing pattern was received from the user. Typing patterns may not be received from users if the admin didn’t deploy the extensions in the login page or if the end users are using the autofill option in the browser True - Typing patterns has been received
False - Typing patterns hasn’t been received.

data.score, data.confidence, data.comparedPatterns are only available for the paid typingdna subscriptions. Otherwise, those values will be null.

Using the parameters inside the script to verify the user

In the provided sample script, data.result has been used to verify the user and prompt the second step. Instead of that, you can use other parameters in the following ways to verify the user. Please note that the below parameters can be configured if you have paid typingdna subscriptions. Otherwise, you can use the basic parameter used in the sample script.

  1. data.score: If the score is less than a threshold, the user can be prompted to the second step.
    var userVerified = data.score > 60;

  2. data.confidence: If the confidence is less than a threshold, the user can be prompted to the second step.
    var userVerified = data.confidence > 50;

  3. data.comparedPatterns: Compared patterns can be used with other parameters to increase the security.
    var userVerified = data.score > 60 && data.comparedPatterns > 4;
    var userVerified = data.result && data.comparedPatterns > 5;