Identify

Copied!
( identity, password )

Description

The Identify function checks the given password against the identity's credentials, returning true if the credentials are valid, or false otherwise. An identity is a Ref for a document that has associated credentials.

Identify allows you to verify an identity’s credentials without calling the Login function and creating a new access token.

Parameters

Argument Type Definition and Requirements

identity

The identity whose credentials should be checked.

password

The password to check.

Returns

A boolean value indicating whether the password is valid for the specified identity.

Examples

Copied!
client.query(
  q.(
    q.(q.('characters'), '181388642114077184'),
    'abracadabra',
  )
)
.then((ret) => console.log(ret))
true

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!