square-napkin-92357
05/29/2025, 3:11 AMbrief-egg-61061
05/29/2025, 3:11 AMbrief-egg-61061
05/29/2025, 3:11 AMjson "email": { "type": "string", "format": "email", "<http://ory.sh/kratos|ory.sh/kratos>": { "credentials": { "password": { "identifier": true } }, "verification": { "via": "email" } } }
This ensures that the email address can be verified via email [Customize identity schemas – Verification address](https://www.ory.sh/docs/kratos/manage-identities/customize-identity-schema#verification-address). --- ## Step 2: Configure the Verification Flow In your Ory Kratos configuration, enable and configure the verification flow. For example, in your config file: yaml selfservice: methods: code: # or link enabled: true config: lifespan: 15m flows: verification: use: code # or 'link' enabled: true lifespan: 15m notify_unknown_recipients: false
Update your project configuration accordingly [Address verification – Configuration](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#configuration). --- ## Step 3: Trigger the Verification Flow When a user registers or updates their email, Ory Kratos will automatically start the verification process if enabled. An email containing a verification link or code will be sent to the user’s email address [Quickstart – Email verification](https://www.ory.sh/docs/kratos/quickstart#email-verification). --- ## Step 4: User Receives the Verification Email The user will see a message like: > "An email containing a verification link has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with." [UI Messages](https://www.ory.sh/docs/kratos/concepts/ui-messages#an-email-containing-a-verification-link-has-been-sent-to-the-email-address-you-provided-if-you-have-not-received-an-email-check-the-spelling-of-the-address-and-make-sure-to-use-the-address-you-registered-with-1080001) --- ## Step 5: User Clicks the Link or Enters the Code - If using the link method: The user clicks the verification link in the email. - If using the code method: The user enters the code from the email into your verification UI. To submit the code (example using cURL): bash curl -X POST \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -b cookies.txt \ -d '{"method":"code","code":"<the-code-from-email>","csrf_token":"your-csrf-token"}' \ "https://$<http://PROJECT_SLUG.projects.oryapis.com/self-service/verification?flow=<your-flow-id|PROJECT_SLUG.projects.oryapis.com/self-service/verification?flow=<your-flow-id>>"
[Submit verification flow](https://www.ory.sh/docs/kratos/bring-your-own-ui/custom-ui-basic-integration#submit-verification-flow) --- ## Step 6: Verification Success After successful verification, the user will see a message like: > "You successfully verified your email address." [UI Messages](https://www.ory.sh/docs/kratos/concepts/ui-messages#you-successfully-verified-your-email-address-1080002) You can check the verified
and verified_at
fields in the user’s identity to confirm [Quickstart – Email verification](https://www.ory.sh/docs/kratos/quickstart#email-verification). --- If you need to re-send the verification email, you can trigger the verification flow again by submitting the email address through the verification endpoint. --- Let me know if you need more details on any specific step!square-napkin-92357
05/29/2025, 4:11 AMA ExecutePostRegistrationPostPersistHook hook aborted early
brief-egg-61061
05/29/2025, 4:12 AMbrief-egg-61061
05/29/2025, 4:12 AMA ExecutePostRegistrationPostPersistHook hook aborted early
when sending an email to verify in Ory Kratos. The available sources discuss the general flow of email verification, configuration, and some log outputs from registration and verification flows, but they do not detail this specific error or its troubleshooting steps. If you encounter this error, it may be related to a misconfiguration or an issue in the post-registration hooks, but the knowledge sources do not provide enough detail to confirm the cause or solution. For further assistance, you may want to check the Ory Kratos documentation on hooks or review your configuration for any issues related to the registration or verification flows. If the problem persists, consider searching the Ory community forums or GitHub issues for similar reports.