Verification
An interface that represents the state of the verification process of a sign-in or sign-up attempt.
- Name
attempts- Type
number | null- Description
The number of attempts related to the verification.
- Name
error- Type
ClerkAPIError | null- Description
The last error the verification attempt ran into.
- Name
expireAt- Type
Date | null- Description
The time the verification will expire at.
- Name
externalVerificationRedirectURL- Type
URL | null- Description
The redirect URL for an external verification.
- Name
nonce- Type
string | null- Description
The nonce pertaining to the verification.
- Name
message- Type
string | null- Description
The message that will be presented to the user's Web3 wallet for signing during authentication. This follows the Sign-In with Ethereum (SIWE) protocol format, which typically includes details like the requesting service, wallet address, terms acceptance, nonce, timestamp, and any additional resources.
- Name
status- Type
'unverified' | 'verified' | 'transferable' | 'failed' | 'expired' | null- Description
The state of the verification.
unverified: The verification has not been verified yet.verified: The verification has been verified.transferable: The verification is transferable to between sign-in and sign-up flows.failed: The verification has failed.expired: The verification has expired.
- Name
strategy- Type
string | null- Description
The strategy pertaining to the parent sign-up or sign-in attempt.
- Name
verifiedAtClient- Type
string | null- Description
The client ID where the verification was completed.
Methods
verifiedFromTheSameClient()
A check to see if the verification was verified from the same client as the parent sign-in or sign-up attempt. For example, checking if the verification was verified from the same browser as the parent sign-in or sign-up attempt.
function verifiedFromTheSameClient(): booleanFeedback
Last updated on