Open a finished Rule from its Profile card, and drop it from the browser on Log out.
This commit is contained in:
1 parent
db1599123b
commit
942c7cc9de
17 files changed
+280
-14
No files matched your search
@@ -6,6 +6,7 @@ import {
|
||||
internalError,
|
||||
unauthorized,
|
||||
} from "../../../../lib/server/responses";
|
||||
import { clearGuestRuleClaimCookie } from "../../../../lib/server/guestRuleClaim";
|
||||
import {
|
||||
clearSessionCookie,
|
||||
getSessionUser,
|
||||
@@ -37,6 +38,7 @@ export const DELETE = apiRoute("user.me.delete", async () => {
|
||||
}
|
||||
|
||||
await clearSessionCookie();
|
||||
await clearGuestRuleClaimCookie();
|
||||
|
||||
return NextResponse.json({ ok: true });
|
||||
});
|
||||
Reference in new issue
Block a user