When calling trackOnce({ fraud: true }), return new token/expiresAt/expiresIn/passed fields. @tderouin right now we're calculating expiresIn and passed on the client, but cleaner to calculate them on the server. Could be a fast follow
Consolidates trackVerified() and trackVerifiedToken(). Now just a single function which returns all of user/events/location/token/expiresAt/expiresIn/passed. No desktop app changes required
Renames error codes to match mobile SDKs for consistency. RadarTimeoutError --> RadarNetworkError, RadarLocationPermissionsError --> RadarPermissionsError. Also renames RadarDesktopAppError to RadarVerifyAppError given the addition of the Radar Verify mobile apps
Fixes long-standing issue where we return RadarLocationPermissionsError for any location error, including location timeouts. Now we only return RadarPermissionsError for true permissions errors (code 1) and RadarLocationError for location timeouts or unable to determine location (codes 2 and 3)
trackOnce({ fraud: true })
, return newtoken/expiresAt/expiresIn/passed
fields. @tderouin right now we're calculatingexpiresIn
andpassed
on the client, but cleaner to calculate them on the server. Could be a fast followtrackVerified()
andtrackVerifiedToken()
. Now just a single function which returns all ofuser/events/location/token/expiresAt/expiresIn/passed
. No desktop app changes requiredRadarTimeoutError
-->RadarNetworkError
,RadarLocationPermissionsError
-->RadarPermissionsError
. Also renamesRadarDesktopAppError
toRadarVerifyAppError
given the addition of the Radar Verify mobile appsRadarLocationPermissionsError
for any location error, including location timeouts. Now we only returnRadarPermissionsError
for true permissions errors (code 1) andRadarLocationError
for location timeouts or unable to determine location (codes 2 and 3)