Skip to content

Instantly share code, notes, and snippets.

@marcus-sa
Created February 24, 2024 23:07
Show Gist options
  • Save marcus-sa/ced65fddf6a5f01c95376b304359b5cd to your computer and use it in GitHub Desktop.
Save marcus-sa/ced65fddf6a5f01c95376b304359b5cd to your computer and use it in GitHub Desktop.
SMS identity schema
{
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"sms": {
"type": "string",
"title": "Phone number",
"format": "tel",
"ory.sh/kratos": {
"credentials": {
"code": {
"identifier": true,
"via": "phone"
}
},
"verification": {
"via": "sms"
}
}
}
},
"required": [
"email"
],
"additionalProperties": false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment