/v1/apps/{app_id}/end-users/{user_id}/sessions/revoke-allAuthRevoke every active session for an end-user.
Path parameters
app_id*stringId of the app.
user_id*stringId of the user.
Response · 204
Sessions revoked.
Example
Request
POST https://api.auth.productcraft.co/v1/apps/{app_id}/end-users/{user_id}/sessions/revoke-all
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
await auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").endUsers.sessions.revokeAll("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");auth.admin.app(…).endUsers.sessions.revokeAll(userId, options?): void