Skip to content

Commit

Permalink
adds a few more params from security service
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhpoddar committed Jul 17, 2024
1 parent cf3d581 commit 2b6e09e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ export type RiskScores = {
phoneNumberRisk?: number;
emailRisk?: number;
isBreachedPassword?: boolean;
isImpossibleTravel?: boolean; // only during sign in or sign up, based on email / phone number
isNewDevice?: boolean; // based on visitorId being different for the email / phone number
numberOfUniqueDevicesForUser?: number; // based on number of visitorIds mapped to the input email / phone number
bruteForce?:
| {
detected: false;
Expand Down Expand Up @@ -459,6 +462,9 @@ export type SecurityFunctions = {
rejectBasedOnVPNBeingUsed?: boolean;
rejectBasedOnPhoneNumberRisk?: boolean;
rejectBasedOnEmailRisk?: boolean;
rejectBasedOnImpossibleTravel?: boolean;
rejectBasedOnNewDevice?: boolean;
rejectBasedOnNumberOfUniqueDevicesForUser?: boolean;
otherReasonForRejection?: string;
}>;

Expand Down

0 comments on commit 2b6e09e

Please sign in to comment.