Credential.byDocument()
Learn: Credentials |
---|
Get a credential by its identity document.
Description
Gets a credential, represented as a
Credential
document, by its
identity document.
A credential associates a password with an
identity document. You can
use credentials and the credential.login()
method to
create tokens as part of an
end-user authentication system.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
document |
true |
Identity document for the credential to retrieve. |
Return value
Type | Description |
---|---|
Resolved reference to a
|