Docs

Identification errors

An index of Clerk errors related to identification, such as phone numbers and email addresses.

IdentificationNotFound

Signifies an error when an identification is not found.

{
    "shortMessage": "Resource not found",
    "longMessage":  "No resource was found for ID <resourceID>",
    "code":         "resource_not_found_code",
}

LastIdentificationDeletionFailed

Signifies an error when trying to delete an identification associated with a user, but it is the last one associated with the user. The user must have at least one identification associated with their account at all times.

{
    "shortMessage": "Deletion failed",
    "longMessage":  "You cannot delete your last identification.",
    "code":         "identification_deletion_failed_code",
}

LastRequiredIdentificationDeletionFailed

Signifies an error when trying to delete an identification associated with a user, but it is the last one associated with the user. The user must have at least one identification associated with their account at all times.

{
    "shortMessage": "Deleting your last <sanitizedIdentType> is prohibited",
    "longMessage":  "You are required to maintain at least one <sanitizedIdentType> in your account at all times",
    "code":         "last_required_identification_deletion_failed_code",
}

LastIdentificationSetFor2FAFailed

Signifies an error when trying to set the only identification associated with the user as a second factor. The user must have at least two identifications associated with their account before they can set one as a second factor.

{
    "shortMessage": "Update failed",
    "longMessage":  "You cannot set your last identification as second factor.",
    "code":         "identification_set_for2_f_a_failed_code"
}

UpdateSecondFactorUnverified

Signifies an error when trying to update second factor attributes for an identification that is not verified. The identification must be verified before it can be used as a second factor.

{
    "shortMessage": "Update failed",
    "longMessage":  "Cannot update second factor attributes for unverified identification",
    "code":         "identification_update_second_factor_unverified"
}

Feedback

What did you think of this content?