Token.firstWhere()
Description
Gets the first token, represented as a
Token
document, that matches a
provided predicate function.
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 |
---|---|---|---|
pred |
Yes |
Anonymous predicate function that:
The method returns the first |