token.replace()
Description
Replaces all fields in a token, represented as
a Token document, with fields from a
provided data object. Fields not present in the data object, excluding the id,
coll, and ts metadata fields, are removed.
A token is a type of
authentication secret used to
provide identity-based access to a Fauna database. Fauna stores tokens as
documents in the Token system
collection.
Metadata fields
You can’t use this method to insert or edit the following metadata fields:
-
id -
coll -
ts
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
data |
Fields for the For supported document fields, see
The object can’t include the following metadata fields:
|