MCPcopy Create free account
hub / github.com/Iterable/react-native-sdk / setUserId

Method setUserId

src/core/classes/Iterable.ts:318–320  ·  view source on GitHub ↗

* Associate the current user with the passed in `userId` parameter. * * Note: specify a user by calling `Iterable.setEmail` or * `Iterable.setUserId`, but **NOT** both. * * @remarks * Iterable's React Native SDK persists the user across app sessions and * restarts, until you man

(userId?: string | null, authToken?: string | null)

Source from the content-addressed store, hash-verified

316 * taken
317 */
318 static setUserId(userId?: string | null, authToken?: string | null) {
319 IterableApi.setUserId(userId, authToken);
320 }
321
322 /**
323 * Get the `userId` associated with the current user.

Callers

nothing calls this directly

Calls 1

setUserIdMethod · 0.65

Tested by

no test coverage detected