Skip to content

Advanced

Setting user data

You can set user data by calling the setUserData function. This function takes an object with the following properties:

  • email: The user’s email.
  • userMeta: The user’s metadata.

You can use the userMeta to store any additional information about the user, e.g. their name, subscription tier & status, etc.

import { setUserData } from "@featurebuddy/react-native";
const apiKey = "your-api-key";
setUserData(apiKey, {
userMeta: { "custom-key": "custom-value" },
});