foundation-comms.credentialmanager.validateusercredentialdata
Home > @genesislcap/foundation-comms > CredentialManager > validateUserCredentialData
CredentialManager.validateUserCredentialData() method
Validate user credential data returned from the container or a cookie.
Signature:
validateUserCredentialData(data: CredentialData, ensurePassword?: boolean): boolean;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
The credential data to validate. | |
|
ensurePassword |
boolean |
(Optional) Check for the existence of a password. PasswordCredentials will have this, but cookies are considered valid without. |
Returns:
boolean
true if the credentials are valid, or false otherwise.
Remarks
This can be called to ensure the credential is in the format this version of the manager expects.