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

Method getUserId

src/core/classes/Iterable.ts:332–334  ·  view source on GitHub ↗

* Get the `userId` associated with the current user. * * @example * ```typescript * Iterable.getUserId().then((userId) => { * // Do something with the userId * }); * ```

()

Source from the content-addressed store, hash-verified

330 * ```
331 */
332 static getUserId(): Promise<string | null | undefined> {
333 return IterableApi.getUserId();
334 }
335
336 /**
337 * Disable the device's token for the current user. This will disable push notifications for the current user.

Callers

nothing calls this directly

Calls 1

getUserIdMethod · 0.65

Tested by

no test coverage detected