Hello, when starting a self service browser regist...
# ory-network
b
Hello, when starting a self service browser registration flow with my identity schema set to the below. I'm getting and error 500, "no identifier found". Is the issue due to having both phone and email set as identifiers?
Copy code
{
  "$id": "<https://schemas.ory.sh/presets/kratos/identity.sms.schema.json>",
  "$schema": "<http://json-schema.org/draft-07/schema#>",
  "title": "Person",
  "type": "object",
  "properties": {
    "traits": {
      "type": "object",
      "properties": {
        "phone_number": {
          "type": "string",
          "format": "tel",
          "title": "Phone Number",
          "ory.sh/kratos": {
            "credentials": {
              "password": {
                "identifier": true
              },
              "webauthn": {
                "identifier": true
              },
              "totp": {
                "account_name": true
              },
              "code": {
                "identifier": true,
                "via": "sms"
              },
              "passkey": {
                "display_name": true
              }
            },
            "recovery": {
              "via": "sms"
            },
            "verification": {
              "via": "sms"
            }
          },
          "maxLength": 320
        },
        "email": {
          "type": "string",
          "format": "email",
          "title": "E-Mail",
          "ory.sh/kratos": {
            "credentials": {
              "password": {
                "identifier": true
              },
              "webauthn": {
                "identifier": true
              },
              "totp": {
                "account_name": true
              },
              "code": {
                "identifier": true,
                "via": "email"
              },
              "passkey": {
                "display_name": true
              }
            },
            "recovery": {
              "via": "email"
            },
            "verification": {
              "via": "email"
            },
            "organizations": {
              "matcher": "email_domain"
            }
          },
          "maxLength": 320
        }
      },
      "required": [
        "phone_number"
      ],
      "additionalProperties": false
    }
  }
}
b
You'll need to decide which of the traits should be the displayname for the passkey credential (and remove the block from the other). The error message is a little misleading here.
b
@bland-eye-99092 thanks, I tried removing the passkey but still hitting the same errors. Error when clicking signup
Copy code
No identifier found
ID: ffda1bac-c1a8-47d1-a8c5-c77cf41aa6f9
Time: Wed, 27 Aug 2025 07:39:27 GMT
Identity schema
Copy code
{
  "$id": "<https://schemas.ory.sh/presets/kratos/identity.sms.schema.json>",
  "$schema": "<http://json-schema.org/draft-07/schema#>",
  "title": "Person",
  "type": "object",
  "properties": {
    "traits": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "format": "email",
          "title": "E-Mail",
          "<http://ory.sh/kratos|ory.sh/kratos>": {
            "credentials": {
              "password": {
                "identifier": true
              },
              "webauthn": {
                "identifier": true
              },
              "totp": {
                "account_name": true
              },
              "code": {
                "identifier": true,
                "via": "email"
              }
            },
            "recovery": {
              "via": "email"
            },
            "verification": {
              "via": "email"
            },
            "organizations": {
              "matcher": "email_domain"
            }
          },
          "maxLength": 320
        },
        "phone_number": {
          "type": "string",
          "format": "tel",
          "title": "Phone Number",
          "<http://ory.sh/kratos|ory.sh/kratos>": {
            "credentials": {
              "password": {
                "identifier": true
              },
              "webauthn": {
                "identifier": true
              },
              "totp": {
                "account_name": true
              },
              "code": {
                "identifier": true,
                "via": "sms"
              },
              "passkey": {
                "display_name": true
              }
            },
            "recovery": {
              "via": "sms"
            },
            "verification": {
              "via": "sms"
            }
          },
          "maxLength": 320
        }
      },
      "required": [
        "email",
        "phone_number"
      ],
      "additionalProperties": false
    }
  }
}