CredentialConstants
CredentialConstants is a constants object exposing well-known credential attribute names, so you can refer to a credential without a string literal.
Usage
import { CredentialConstants, updateMeCredentials } from '@thunderid/browser'
await updateMeCredentials({
baseUrl,
payload: { [CredentialConstants.PASSWORD]: newValue },
fetcher,
})
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
PASSWORD | string | 'password' | The default credential every user type ships with. |
Related
updateMeCredentials(): Writes the credential these constants namesupportsCredential(): Check whether an account's type declares one of these