-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add skipVerifyApp param to trackVerified() and startTrackingVerified() #185
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
const deviceId = params.deviceId || Device.getDeviceId(); | ||
const installId = params.installId || Device.getInstallId(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the change to get rid of setting these via params? This might be how we override the values int the simulator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really want to give developers control of these for fraud / geo-compliance use cases. For implementations using the Mac and Windows app, those apps override these anyway (with more stable hardware device IDs)
src/api/verify.ts
Outdated
@@ -103,7 +116,9 @@ class VerifyAPI { | |||
|
|||
static async startTrackingVerified(params: RadarStartTrackingVerifiedParams) { | |||
const doTrackVerified = async () => { | |||
const trackRes = await this.trackVerified({}); | |||
const trackRes = await this.trackVerified({ | |||
...params, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can probably just pass params
instead of destructuring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, updated
No description provided.