MagicTokenUpdateInput
Parameters for updating an existing magic token's properties.
Allows modification of magic token settings such as expiration time, usage restrictions, associated user, and metadata. All fields are optional - only provided fields will be updated.
input MagicTokenUpdateInput {
contactId: Int
customerId: Int
expiresAt: String
oneTimeUse: Boolean
extra: [String!]
}
Fields
MagicTokenUpdateInput.contactId
● Int
scalar
Contact identifier for reassociating the magic token.
When specified, the token will authenticate as this contact instead of its current association. Cannot be used together with customerId. Must be a valid contact ID that exists in the system.
MagicTokenUpdateInput.customerId
● Int
scalar
Customer identifier for reassociating the magic token.
When specified, the token will authenticate as this customer instead of its current association. Cannot be used together with contactId. Must be a valid customer ID that exists in the system.
MagicTokenUpdateInput.expiresAt
● String
scalar
Updated expiration timestamp for the magic token.
ISO 8601 formatted date and time when the token should expire. After this time, the token becomes invalid and cannot be used for authentication. If not provided, the current expiration remains unchanged.
MagicTokenUpdateInput.oneTimeUse
● Boolean
scalar
Updated one-time use restriction for the magic token.
When true, the token becomes invalid after the first successful authentication. When false, the token can be reused until it expires. If not provided, the current setting remains unchanged.
MagicTokenUpdateInput.extra
● [String!]
list scalar
Updated metadata or context information for the magic token.
Array of strings containing arbitrary metadata related to the token's purpose, origin, or usage context. This completely replaces any existing extra data. Useful for tracking token usage and debugging.
Member Of
magicTokenUpdate
mutation