Module auth
faunadb::query
Authentication functions
The HasIdentity function returns true if the current client authentication credentials have an associated identity, and false if they don’t.
HasIdentity
true
false
The Identify function checks the given password against the ref’s credentials, returning true if the credentials are valid, or false otherwise.
Identify
The Identity function returns the ref of the instance associated with the authentication token used for the request. If an instance does not exist, an error is returned.
Identity
The Login function creates an authentication token for the provided Ref, or Set of Refs.
Login
The Logout function deletes all tokens associated with the current session if its parameter is true, or just the token used in this request otherwise.
Logout