Your own integration
If you integrate the Magify SDK with your own solution and already have a reliable way to identify the user, you can pass that identifier to the SDK as a custom clientId. Magify then uses it to consistently identify the same user across launches.
Usage
Provide the identifier through the clientId parameter when creating the MagifyClient:
let magify = MagifyClient(
for: "MyApplication",
defaultConfigURL: configURL,
isSandbox: false,
clientId: "your_trusted_user_id"
)
If no clientId is provided, the SDK generates and reuses one automatically. The value is immutable after the client is created — to switch users, create a new MagifyClient with another identifier. See Client identity for details.