expo-user-identity
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

Expo User Identity

This Expo module provides an async function for Expo apps running on both iOS and Android. It returns an iCloud user identity on iOS and an email on Android. It automatically sets appropriate entitlements for iOS.

Installation

To install this module, run the following command:

npx expo install expo-user-identity

Configuration

This module also includes a plugin configuration. For iCloud, the default container environment is set to "Development" but when you push your iCloud container to "Production", you need to set that in your plugins config:

    "plugins": [
      [
        "expo-user-identity",
        {          
          "iCloudContainerEnvironment": "Production"
        }
      ]
    ]

Usage

This module only has one method, getUserIdentity(), which returns a promise that resolves to a string.

import { getUserIdentity } from 'expo-user-identity'

Roadmap

  • [x] iOS support
  • [x] Android support
  • [ ] Web support (if possible, likely not)

/expo-user-identity/

    Package Sidebar

    Install

    npm i expo-user-identity

    Weekly Downloads

    5

    Version

    0.4.0

    License

    MIT

    Unpacked Size

    19 kB

    Total Files

    26

    Last publish

    Collaborators

    • hennessyevan