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

Credentials.byId("371240301830864930")!.verify("sekret")
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!