Appearance
Documentation / server-auth / DiscordOAuthWithMetadata
Interface: DiscordOAuthWithMetadata
Object representation of a user's Discord Account, with additional metadata for advanced use cases.
Extends
LinkMetadata
.Discord
Properties
email
email:
null
|string
The email associated with the Discord account.
Inherited from
firstVerifiedAt
firstVerifiedAt:
null
|Date
Datetime when this account was linked to the user.
Inherited from
LinkMetadata.firstVerifiedAt
latestVerifiedAt
latestVerifiedAt:
null
|Date
Datetime when this account was most recently used as a login/link method by the user.
Inherited from
LinkMetadata.latestVerifiedAt
subject
subject:
string
The sub
claim from the Discord-issued JWT for this account.
Inherited from
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
verifiedAt
verifiedAt:
Date
Deprecated
use firstVerifiedAt
instead. Datetime when this account was linked to the user or created.
Inherited from
LinkMetadata.verifiedAt