credential.verify()

Password verification.

Signature

verify(password: String) => Boolean

Description

Verify a password against a Credential document.

Parameters

Parameter Type Required Description

password

String

Yes

Password to compare against the credential document.

Return value

Type Description

Boolean

The password 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!