[][src]Module faunadb::query::auth

Authentication functions

Structs

HasIdentity

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

Identify

The Identify function checks the given password against the ref’s credentials, returning true if the credentials are valid, or false otherwise.

Identity

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.

Login

The Login function creates an authentication token for the provided Ref, or Set of Refs.

Logout

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.