Token.byDocument()
Learn: Tokens |
---|
Get a token by its identity document.
Description
Gets a token, represented as a
Token
document, by its
identity document. An
identity document can have multiple tokens.
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.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
document |
true |
Identity document for the token to retrieve. |
Return value
Type | Description |
---|---|
Resolved reference to a |