Identity
Copied!
Identity()
Description
The Identity
function returns the ref of the document associated with
the authentication token used for the request. If a document does not
exist, an error is returned.
Examples
Copied!
client.query(q.Identity())
.then((ret) => console.log(ret))
Ref(id=181388642114077184, collection=Ref(id=characters, collection=Ref(id=collections)))
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!