Skip to content

docs: add docs for verify_new_address and notify_previous_addresses#2597

Open
jonas-jonas wants to merge 1 commit into
masterfrom
jonas-jonas/documentNewKratosHooks
Open

docs: add docs for verify_new_address and notify_previous_addresses#2597
jonas-jonas wants to merge 1 commit into
masterfrom
jonas-jonas/documentNewKratosHooks

Conversation

@jonas-jonas
Copy link
Copy Markdown
Member

@jonas-jonas jonas-jonas commented Jun 2, 2026

Related Issue or Design Document

Checklist

  • I have read the contributing guidelines and signed the CLA.
  • I have referenced an issue containing the design document if my change introduces a new feature.
  • I have read the security policy.
  • I confirm that this pull request does not address a security vulnerability.
    If this pull request addresses a security vulnerability,
    I confirm that I got approval (please contact security@ory.com) from the maintainers to push the changes.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added the necessary documentation within the code base (if appropriate).

Further comments

Summary by CodeRabbit

  • Documentation
    • Added documentation for new address verification and notification actions to the network documentation sidebar.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 2, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 07411757-ea89-4ded-90ee-7f7fa7055d0c

📥 Commits

Reviewing files that changed from the base of the PR and between aa45903 and 3081850.

⛔ Files ignored due to path filters (4)
  • docs/actions/notify-previous-addresses.mdx is excluded by !**/*.mdx
  • docs/actions/require-verified-address.mdx is excluded by !**/*.mdx
  • docs/actions/verify-new-address.mdx is excluded by !**/*.mdx
  • docs/kratos/hooks/01_configure-hooks.mdx is excluded by !**/*.mdx
📒 Files selected for processing (1)
  • sidebars-network.ts

📝 Walkthrough

Walkthrough

This PR updates the Docusaurus network sidebar configuration to register two new Ory Actions documentation pages—verify-new-address and notify-previous-addresses—in the existing actions section, making them discoverable in the documentation navigation.

Changes

Ory Actions Sidebar Documentation

Layer / File(s) Summary
Ory Actions page additions
sidebars-network.ts
Two new Ory Actions documentation pages (actions/verify-new-address and actions/notify-previous-addresses) are added to the sidebar configuration to expose them in the navigation menu.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • ory/docs#2589: Both PRs modify sidebars-network.ts by adding new documentation pages to the network sidebar.

Suggested reviewers

  • vinckr
  • aeneasr
  • zepatrik
  • piotrmsc

Poem

🐰✨ Two actions nestled in the sidebar tree,
Verify addresses and notify with glee,
No broken docs, just links all bright,
The navigation now feels just right! 📚

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description contains only the template with no actual content filled in; all sections remain as empty comments without any substantive information about the changes. Provide a clear description of why these documentation additions are being made, and complete the related issue/design document section as applicable for documentation improvements.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding documentation for two new Ory Actions pages (verify_new_address and notify_previous_addresses) to the sidebar configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jonas-jonas/documentNewKratosHooks

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation for two additional Ory Actions (verify_new_address and notify_previous_addresses) and wires them into the Network docs navigation and the Kratos “configure hooks” overview so users can discover and configure them.

Changes:

  • Added two new action docs: Verify address changes and Notify previous addresses.
  • Updated the “Configure hooks” page to include the new actions and adjust the actions count/table.
  • Added the new docs to the Network sidebar and cross-linked from the existing address-verification docs.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sidebars-network.ts Adds the new action docs to the “Ory Actions” section for discoverability.
docs/kratos/hooks/01_configure-hooks.mdx Updates the available actions list/count and links to the new action docs.
docs/actions/verify-new-address.mdx New documentation page describing verify_new_address behavior and configuration.
docs/actions/require-verified-address.mdx Cross-links readers to verify_new_address for “verify before applying change” behavior.
docs/actions/notify-previous-addresses.mdx New documentation page describing notify_previous_addresses, including recipients configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +108 to +110
| [`verify_new_address`](../../actions/verify-new-address.mdx) | Defers an address change until the user verifies the new address. | For use only with the `after` settings flow, `profile` method only. |
| [`notify_previous_addresses`](../../actions/notify-previous-addresses.mdx) | Notifies the user's previous addresses when they change a verifiable address. | For use only with the `after` settings flow, `profile` method only. Accepts a `recipients` configuration. |
| [`web_hook`](../../guides/integrate-with-ory-cloud-through-webhooks.mdx) | Allows to trigger external and custom logic. Can be used with all flows and methods except error and logout. | Requires providing webhook configuration. It is the most common action type for the `after` settings flow. See an example of using webhooks [here](../../guides/integrate-with-ory-cloud-through-webhooks.mdx). |
Comment on lines +114 to +116
The `verify_new_address` action defers the change until the new address is verified. This differs from the `show_verification_ui`
action described in [Verification on address change](require-verified-address.mdx#verification-on-address-change), which applies
the change immediately and only redirects the user to the verification screen afterwards.
Comment on lines +11 to +13
The `notify_previous_addresses` action sends a notification to a user's previous email or phone addresses when they change a
verifiable address through the settings flow. Use it to alert users to address changes on their account so they can react if a
change was not made by them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants