ory / ory/docs

Inconsistent "revoke_active_sessions" hook docs

Open Beginner friendly
#2,651 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
161
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Preflight checklist
Ory Network Project

No response

Describe the bug

The docs related to the "revoke_active_sessions" hook are inconsistent: there is one page which shows how to use this hook after a user changes their password:

https://www.ory.com/docs/kratos/session-management/revoke-sessions-hook

But on the https://www.ory.com/docs/kratos/hooks/configure-hooks#available-actions page, in the table it says that only the login flow is supported.

I propose a change to the table:

| revoke_active_sessions | Revokes all other active sessions of the user on successful login. | For use with either the login flow or the after settings flow, password method (as shown here).

Reproducing the bug

visit https://www.ory.com/docs/kratos/hooks/configure-hooks#available-actions

Relevant log output

Relevant configuration

Version

26.2

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

There is a restriction preventing me from opening a PR. The proposed change is already on https://github.com/nbycomp/docs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Available Actions table in the configure-hooks documentation and compare its revoke_active_sessions entry with the revoke-sessions-hook page. Update the table to document support for the login flow and the after settings flow using the password method, then verify the links and rendered wording.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.