@layers/amba-react-native 4.0.7 → 4.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,10 @@ npx expo install @layers/amba-react-native @react-native-async-storage/async-sto
21
21
  ```tsx
22
22
  import { Amba } from "@layers/amba-react-native";
23
23
 
24
- await Amba.configure({ apiKey: "amba_pk_…" });
24
+ await Amba.configure({
25
+ projectId: "<your project id>",
26
+ clientKey: "amb_dev_ck_…",
27
+ });
25
28
  await Amba.auth.signInAnonymously();
26
29
  await Amba.events.track("app_opened");
27
30
  ```
@@ -50,11 +53,11 @@ const credential = await AppleAuthentication.signInAsync({
50
53
  ],
51
54
  });
52
55
  if (credential.identityToken) {
53
- await Amba.auth.signInWithSocial("apple", credential.identityToken);
56
+ await Amba.auth.signInWithApple(credential.identityToken);
54
57
  }
55
58
  ```
56
59
 
57
- Google works the same way via `expo-auth-session/providers/google` (pass `response.params.id_token` to `Amba.auth.signInWithSocial("google", …)`).
60
+ Google works the same way via `expo-auth-session/providers/google`: pass `response.params.id_token` to `Amba.auth.signInWithGoogle(idToken)`.
58
61
 
59
62
  ## Docs
60
63