narrow-flower-8731
04/19/2023, 1:21 AMverification:
enabled: true
ui_url: <http://192.168.18.105:8080/verification-done>
use: code
lifespan: 24h
200 Response with Validation in Message for invalid code:
{
"id": "6ef12415-6852-4313-a117-81074ade46a5",
"type": "api",
"expires_at": "2023-04-20T01:07:20.687459195Z",
"issued_at": "2023-04-19T01:07:20.687459195Z",
"request_url": "<http://127.0.0.1:4433/self-service/registration/api?return_to=>",
"active": "code",
"ui": {
"action": "<http://127.0.0.1:4433/self-service/verification?flow=6ef12415-6852-4313-a117-81074ade46a5>",
"method": "POST",
"nodes": [
{
"type": "input",
"group": "code",
"attributes": {
"name": "code",
"type": "text",
"required": true,
"disabled": false,
"node_type": "input"
},
"messages": [],
"meta": {
"label": {
"id": 1070006,
"text": "Verify code",
"type": "info"
}
}
},
{
"type": "input",
"group": "code",
"attributes": {
"name": "method",
"type": "hidden",
"value": "code",
"disabled": false,
"node_type": "input"
},
"messages": [],
"meta": {}
},
{
"type": "input",
"group": "code",
"attributes": {
"name": "method",
"type": "submit",
"value": "code",
"disabled": false,
"node_type": "input"
},
"messages": [],
"meta": {
"label": {
"id": 1070005,
"text": "Submit",
"type": "info"
}
}
}
],
"messages": [
{
"id": 4070006,
"text": "The verification code is invalid or has already been used. Please try again.",
"type": "error",
"context": {}
}
]
},
"state": "sent_email"
}
Success Response:
{
"id": "764fde1d-942f-4b28-b166-78fb405e5595",
"type": "api",
"expires_at": "2023-04-20T01:13:36.63428291Z",
"issued_at": "2023-04-19T01:13:36.63428291Z",
"request_url": "<http://127.0.0.1:4433/self-service/registration/api?return_to=>",
"active": "code",
"ui": {
"action": "<http://192.168.18.105:4455/>",
"method": "GET",
"nodes": [
{
"type": "input",
"group": "default",
"attributes": {
"name": "csrf_token",
"type": "hidden",
"value": "",
"required": true,
"disabled": false,
"node_type": "input"
},
"messages": [],
"meta": {}
},
{
"type": "a",
"group": "code",
"attributes": {
"href": "<http://192.168.18.105:4455/>",
"title": {
"id": 1070009,
"text": "Continue",
"type": "info"
},
"id": "continue",
"node_type": "a"
},
"messages": [],
"meta": {
"label": {
"id": 1070009,
"text": "Continue",
"type": "info"
}
}
}
],
"messages": [
{
"id": 1080002,
"text": "You successfully verified your email address.",
"type": "success"
}
]
},
"state": "passed_challenge"
}