From 18e3b82e67d643d0c5a5666a9d192d8c1ea9422b Mon Sep 17 00:00:00 2001 From: wangsijie Date: Mon, 14 Nov 2022 17:17:24 +0800 Subject: [PATCH] chore: add changeset on suspend (#2430) --- .changeset/grumpy-clocks-refuse.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .changeset/grumpy-clocks-refuse.md diff --git a/.changeset/grumpy-clocks-refuse.md b/.changeset/grumpy-clocks-refuse.md new file mode 100644 index 000000000..91b68c39c --- /dev/null +++ b/.changeset/grumpy-clocks-refuse.md @@ -0,0 +1,9 @@ +--- +"@logto/core": minor +--- + +Add user suspend API endpoint + +Use `PATCH /api/users/:userId/is-suspended` to update a user's suspended state, once a user is suspended, all refresh tokens belong to this user will be revoked. + +Suspended users will get an error toast when trying to sign in.