Skip to content
Discussion options

You must be logged in to vote

Hello @anshbhimani2

Two main things are missing / misplaced in your config:

Identity schema is not configured for phone+code login

In identity.schema.json, the phone trait must be marked as a code identifier via SMS, otherwise the code method can’t use it. For example:[Identity extensions; Passwordless custom schema]

{
  "properties": {
    "traits": {
      "type": "object",
      "properties": {
        "phone": {
          "type": "string",
          "format": "tel",
          "title": "Phone number",
          "ory.sh/kratos": {
            "credentials": {
              "code": {
                "identifier": true,
                "via": "sms"
              }
            }
          …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by anshbhimani2
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants