HasIdentity

Copied!
()

Description

The HasIdentity function returns true if the current client authentication credentials have an associated identity, and false if they don’t.

Parameters

None.

Returns

A boolean indicating whether the current client credentials are associated with an identity.

Examples

Copied!
client.query(q.())
.then((ret) => console.log(ret))
false

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!