Skip to content

Rotate user token on role change to force re-login - #294

Merged
pellecchialuigi merged 2 commits into
mainfrom
feat/clear-user-token-on-role-change
Jul 22, 2026
Merged

Rotate user token on role change to force re-login#294
pellecchialuigi merged 2 commits into
mainfrom
feat/clear-user-token-on-role-change

Conversation

@pellecchialuigi

Copy link
Copy Markdown
Collaborator

When an admin changes a user's role, regenerate the user's session token so any active sessions are invalidated and the user must log in again.

Solves #291

@pellecchialuigi
pellecchialuigi force-pushed the feat/clear-user-token-on-role-change branch from 136ffd0 to 828725a Compare July 21, 2026 08:23
pellecchialuigi and others added 2 commits July 22, 2026 09:55
When an admin changes a user's role, regenerate the user's session token
so any active sessions are invalidated and the user must log in again.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Luigi Pellecchia <pellecchia.luigi@gmail.com>
…s refreshed

Co-authored-by: Cursor <cursoragent@cursor.com>
@pellecchialuigi
pellecchialuigi force-pushed the feat/clear-user-token-on-role-change branch from ddab92c to ff649b4 Compare July 22, 2026 07:56
@pellecchialuigi
pellecchialuigi merged commit f3e5a37 into main Jul 22, 2026
3 of 4 checks passed
@pellecchialuigi
pellecchialuigi deleted the feat/clear-user-token-on-role-change branch July 22, 2026 09:36
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.

1 participant