Token document definition

This describes the Token definition document.

Fields

Field name Value type Description

id

A unique identifier for a token. Fauna assigns this value at creation.

coll

Token

ts

Creation timestamp, with microsecond resolution and time zone.

document

ref

The identity document associated with the token.

secret

Randomly generated cryptographic hash. Equivalent to a password.

ttl

Timestamp indicating a document lifespan. When the ttl is reached, Fauna removes it. If ttl isn’t provided, the value is null and the document persists indefinitely or until deleted.

data

User-defined metadata for the token.

See also

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!