Skip to main content

Interface: DiscordOAuthWithMetadata

Object representation of a user's Discord Account, with additional metadata for advanced use cases.

Hierarchy

  • LinkMetadata

  • Discord

    DiscordOAuthWithMetadata

Properties

email

email: null | string

The email associated with the Discord account.

Inherited from

Discord.email


subject

subject: string

The sub claim from the Discord-issued JWT for this account.

Inherited from

Discord.subject


type

type: "discord_oauth"

Denotes that this is a Discord account.

Overrides

LinkMetadata.type


username

username: null | string

The username associated with the Discord account.

Inherited from

Discord.username


verifiedAt

verifiedAt: Date

Datetime when this account was linked to the user.

Inherited from

LinkMetadata.verifiedAt