Skip to content
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

setSiftConfig required arguments #3

Open
bell-steven opened this issue Jul 15, 2021 · 2 comments
Open

setSiftConfig required arguments #3

bell-steven opened this issue Jul 15, 2021 · 2 comments

Comments

@bell-steven
Copy link

The Readme indicates that only the first two arguments, accountId and beaconKey, are required.

When running in my app, I am receiving native code errors indicating that all the parameters are indeed required.

Steps to reproduce:

npm install sift-react-native
cd ios && pod install && cd ..
// App.js
import React from 'react';
import SiftReactNative from 'sift-react-native';

const accountId = SIFT_SCIENCE_ACCOUNT_ID
const beaconKey = SIFT_SCIENCE_BEACON_KEY

const ConfigurationScreen = () => {
  ...
  SiftReactNative.setSiftConfig(
      accountId,
      beaconKey
    );
  ...
  return <View><Text>Hello Word</Text></View>
}

export default ConfigurationScreen;
@TomSwift
Copy link

TomSwift commented Nov 1, 2021

Same. Looking at the implementation, we can pass an empty string for serverUrlFormat, but all params are strictly required by the typings.

@16francej
Copy link

Following up on this. The note in the README is unclear. Is it describing the endpoints in:
https://sift.com/developers/docs/curl/device-fingerprinting-api/overview?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants