Token document definition
The Token
collection is a native collection, and its documents have an
immutable, Fauna-defined structure. Moreover, the document structure
returned at creation differs from the token document structure returned by a
query of Token
documents.
At creation, Fauna returns the full document
associated with the token and
a secret
field. Subsequent queries of the token return only the document
collection and identifier.
Field name | Value type | Description | ||||
---|---|---|---|---|---|---|
|
A unique identifier for a token. Fauna assigns this value at creation. |
|||||
|
|
|||||
|
Creation timestamp, with microsecond resolution and time zone. |
|||||
|
ref |
The identity document associated with this token. At creation, all document fields are returned. Subsequent queries for the token return only these two fields:
|
||||
|
The At creation is the only time Fauna displays the |
|||||
|
Timestamp indicating a document lifespan. When the |
|||||
|
(Optional) User-defined metadata for the token. |
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!