Check out v4 of the Fauna CLI

v4 of the Fauna CLI is now in beta.

The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start.

credential.verify()

Password verification.

Signature

verify(secret: String) => Boolean"

Description

Verify a password against a Credential document.

Parameters

Parameter Type Required Description

secret

String

Yes

Password to compare against the credential document.

Return value

Type Description

Boolean

The secret status. A status of true means the password is valid, while false means it is invalid.

Examples

Credential.byId("412654807560487424")!.verify("fauna-demo")
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!