Skip to main content

Interface: User

Properties

apple

Optional apple: Apple

The user's Apple account, if they have linked one. It cannot be linked to another user.


createdAt

createdAt: Date

The datetime of when the user was created.


discord

Optional discord: Discord

The user's Discord account, if they have linked one. It cannot be linked to another user.


email

Optional email: Email

The user's email address, if they have linked one. It cannot be linked to another user.


github

Optional github: Github

The user's Github account, if they have linked one. It cannot be linked to another user.


google

Optional google: Google

The user's Google account, if they have linked one. It cannot be linked to another user.


id

id: string

The Privy-issued DID for the user. If you need to store additional information about a user, you can use this DID to reference them.


linkedAccounts

linkedAccounts: LinkedAccountWithMetadata[]

The list of accounts associated with this user. Each account contains additional metadata that may be helpful for advanced use cases.


phone

Optional phone: Phone

The user's phone number, if they have linked one. It cannot be linked to another user.


twitter

Optional twitter: Twitter

The user's Twitter account, if they have linked one. It cannot be linked to another user.


wallet

Optional wallet: Wallet

The user's most recently linked wallet, if they have linked at least one wallet. It cannot be linked to another user. This wallet is the wallet that will be used for transactions and signing if it is connected.