Skip to main content

MagicToken

Authentication token entity for secure user access.

Represents temporary authentication tokens that provide secure access to system resources. These tokens are linked to either contacts or customers for identity verification and session management.

type MagicToken {
id: String!
contactId: Int
customerId: Int
expiresAt: DateTime
lastAccessedAt: DateTime
failedLogins: Int
successfulLogins: Int
oneTimeUse: Boolean!
extra: [String!]
contact: Contact
customer: Customer
}

Fields

MagicToken.id ● String! non-null scalar

Magic token primary identifier

MagicToken.contactId ● Int scalar

Identifier of the associated contact, use either contactId or customerId

MagicToken.customerId ● Int scalar

Identifier of the associated customer, use either customerId or contactId

MagicToken.expiresAt ● DateTime scalar

Expiration date and time of the magic token

MagicToken.lastAccessedAt ● DateTime scalar

Last accessed date and time of the magic token

MagicToken.failedLogins ● Int scalar

Number of failed login attempts using the magic token

MagicToken.successfulLogins ● Int scalar

Number of successful login attempts using the magic token

MagicToken.oneTimeUse ● Boolean! non-null scalar

Indicates if the magic token is for one-time use only

MagicToken.extra ● [String!] list scalar

Additional information or metadata associated with the magic token

MagicToken.contact ● Contact object

Contact associated with this magic token.

Returns the contact that this authentication token belongs to. Used for contact-based authentication and identity verification.

MagicToken.customer ● Customer object

Customer associated with this magic token.

Returns the customer that this authentication token belongs to. Used for customer-based authentication and identity verification.

Returned By

magicToken query ● magicTokenCreate mutation ● magicTokenUpdate mutation

Member Of

Contact object ● Customer object ● MagicTokenResponse object