Hooks

useUser

Purpose

The useUser hook provides a convenient way to manage user identity and attributes, and access user-specific information like subscription status.

Returned Values

Prop

Type

IdentifyOptions

Prop

Type

SubscriptionStatus

Prop

Type

EntitlementsInfo

Prop

Type

UserAttributes

Prop

Type

CustomerInfo

Prop

Type

Snapshots are immutable and don't auto-update — fetch a fresh one with getCustomerInfo(), or stay current via useSuperwallEvents's onCustomerInfoChange.

Usage

Managing Users

How is this guide?

On this page