# How to secure, monitor, and revoke user sessions with Clerk - Part 2

> Part 2 of 2. Start with [How to secure, monitor, and revoke user sessions with Clerk](https://clerk.com/articles/how-to-secure-monitor-and-revoke-user-sessions-with-clerk.md).

Guard each sensitive action with reverification, Clerk's form of step-up authentication. When `has({ reverification })` fails at the level the action needs, return `reverificationErrorResponse()` with that same level from the route handler, and wrap the client call in `useReverification()`, which shows Clerk's prompt and retries the request.

On irreversible or high-impact routes, also run a live session check: confirm that `getSession()` still reports the [session](https://clerk.com/glossary.md#session) as `active`. To monitor sessions, verify `session.*` [webhooks](https://clerk.com/glossary.md#webhook) with `verifyWebhook()` and review Application Logs in the Clerk Dashboard.

This part builds on the [Next.js](https://clerk.com/glossary.md#next-js) 16 [Clerk quickstart](https://clerk.com/docs/nextjs/getting-started/quickstart.md) and covers reverification levels, the live session check that closes the [revocation window](https://clerk.com/articles/how-to-secure-monitor-and-revoke-user-sessions-with-clerk.md#the-60-second-session-token-and-the-revocation-window) from Part 1, session webhooks, Clerk's new-device protections, Application Logs, and a comparison of [session management](https://clerk.com/glossary.md#session-management) tools. Vendor and plan details reflect public docs as of October 2026.

> Tested on November 19, 2026 with `next` 16.4.6 and [`@clerk/nextjs`](https://www.npmjs.com/package/@clerk/nextjs) 7.10.5, which pulls in `@clerk/backend` 3.31.2 ([release notes](https://github.com/clerk/javascript/pull/10916)). The webhook handler's `evt.timestamp` needs `@clerk/nextjs` 7.9.8 or later ([release notes](https://github.com/clerk/javascript/pull/9933)), and the quickstart's [lockfile](https://github.com/clerk/clerk-nextjs-app-quickstart/blob/98fa16f453b5c9408e4c07bc21e933112e420ff1/pnpm-lock.yaml#L11-L16) resolves `@clerk/nextjs` 7.9.17 and `next` 16.4.2, so update `@clerk/nextjs` and `next` first.

## Protect sensitive actions with step-up authentication (reverification)

### How reverification differs from revocation

**Reverification checks how recently a user verified their credentials, while revocation ends a session.** Reverification reads the session token's `fva` [claim](https://clerk.com/glossary.md#claim), which holds the minutes since the user last verified a first factor and the minutes since they last verified a second factor ([session tokens](https://clerk.com/docs/guides/sessions/session-tokens.md)).

Because the check reads only the token, a token issued before a revocation still passes `has({ reverification })` until it expires. The check also measures only freshness, so one reverification approves every request inside the window. Pair reverification with a live session check on the most sensitive routes.

Clerk requires reverification for 11 sensitive actions, including "Revoke session" and "Set/update password," with a 10-minute default window, and its prebuilt components handle the prompt ([sensitive actions](https://clerk.com/docs/guides/secure/reverification.md#sensitive-actions-that-require-reverification)). To change the window, in the Clerk Dashboard, navigate to the [**Sessions**](https://dashboard.clerk.com/~/sessions) page and set **Session lifetime** → **Reverification window** to a value from 1 to 10 minutes ([changelog](https://clerk.com/changelog/2026-08-28-customize-reverification-window.md)). The setting "applies only to the Clerk-protected sensitive actions" ([customize the window](https://clerk.com/docs/guides/secure/reverification.md#customize-the-reverification-window)).

> Applications created before March 31, 2025, need one more step ([changelog](https://clerk.com/changelog/2025-03-31-reverification.md)). In the Clerk Dashboard, navigate to the [**Updates**](https://dashboard.clerk.com/~/updates) page and turn on the Reverification APIs.

### Choose a reverification level

`has()` accepts four preset levels or a custom `{ level, afterMinutes }` object ([`ReverificationConfig`](https://clerk.com/docs/reference/backend/types/auth-object.md#reverificationconfig), [preset values](https://github.com/clerk/javascript/blob/750e7fc544361b763089c21113f3297cb15b7ef2/packages/shared/src/authorization.ts#L51-L68)). The "Suggested use" column is this article's recommendation.

| Level                            | Verified within | Factor Clerk asks for                              | Suggested use                                                                 |
| -------------------------------- | --------------- | -------------------------------------------------- | ----------------------------------------------------------------------------- |
| `strict_mfa`                     | 10 minutes      | First and second factor                            | Irreversible or high-value actions, such as deleting data or changing billing |
| `strict`                         | 10 minutes      | Second factor                                      | Signing out devices, revoking sessions, account changes                       |
| `moderate`                       | 1 hour          | Second factor                                      | Lower-risk account actions                                                    |
| `lax`                            | 1 day           | Second factor                                      | Low-risk actions                                                              |
| Custom `{ level, afterMinutes }` | `afterMinutes`  | `first_factor`, `second_factor`, or `multi_factor` | Your own policy                                                               |

Reverification accepts password, email code, phone code, [passkey](https://clerk.com/glossary.md#passkeys), and Enterprise single sign-on ([SSO](https://clerk.com/docs/guides/configure/auth-strategies/enterprise-connections/overview.md)) as first factors. Its second factors are phone code, [authenticator app](https://clerk.com/glossary.md#authenticator-apps-totp), and [backup code](https://clerk.com/glossary.md#backup-codes), plus passkey on [API version 2026-08-20](https://clerk.com/docs/guides/development/upgrading/upgrade-guides/2026-08-20.md) or later when **Passkeys satisfy multi-factor authentication** is on ([conditions](https://clerk.com/docs/guides/development/upgrading/upgrade-guides/2026-08-20.md#passkeys-as-a-second-factor)).

When a user has no second factor, the level falls back to `first_factor`. Users with no eligible factor, such as those who sign in only with email links, can't reverify ([caveats](https://clerk.com/docs/guides/secure/reverification.md#caveats)). [Multi-factor authentication (MFA)](https://clerk.com/glossary.md#multi-factor-authentication-mfa) needs a paid plan for production use ([MFA](https://clerk.com/docs/guides/configure/auth-strategies/sign-up-sign-in-options.md#multi-factor-authentication)), so on a Hobby production instance every level checks the first factor.

### Close the revocation window with a live session check

Match each request to the checks it needs:

| Request type                                                                                                        | Checks                                                                                                                                                            | Why                                         |
| ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
| Ordinary reads and writes                                                                                           | `auth()` only                                                                                                                                                     | Local token verification, no session lookup |
| Account changes, signing out other devices, admin changes                                                           | `auth()` plus reverification                                                                                                                                      | Proves a recent verification                |
| Irreversible or high-impact actions: deleting or exporting data, changing billing, revoking another user's sessions | `auth()`, reverification, and a live [`getSession(sessionId)`](https://clerk.com/docs/reference/backend/sessions/get-session.md) check that `status === 'active'` | Closes the 60-second revocation window      |

Reverification and the live session check run only on sensitive actions, so everyday requests stay fast and skip the Backend API `getSession()` call, which counts toward Clerk's [rate limits](https://clerk.com/docs/guides/how-clerk-works/system-limits.md).

Put both checks in the route handler or Server Action body. Next.js layouts "don't re-render on navigation, meaning the user session won't be checked on every route change" ([layouts](https://nextjs.org/docs/app/guides/authentication#layouts-and-auth-checks)), and Proxy should "only read the session from the cookie (optimistic checks), and avoid database checks" ([Proxy](https://nextjs.org/docs/app/guides/authentication#optimistic-checks-with-proxy-optional)). Keep `auth()` and the live session check outside [`'use cache'`](https://nextjs.org/docs/app/api-reference/directives/use-cache#request-time-apis) scopes, which can't read `cookies()` or `headers()`.

### Example: a route handler with both checks

Every check runs before `deleteProject()`, which stands in for your own data layer, so no data changes until the live session check confirms the session is still `active`. A stale verification gets the 403 ([source](https://github.com/clerk/javascript/blob/750e7fc544361b763089c21113f3297cb15b7ef2/packages/shared/src/authorization-errors.ts#L16-L35)) that `useReverification()` turns into a prompt on the client:

filename: app/api/projects/[id]/route.ts
```ts
import { auth, clerkClient, reverificationErrorResponse } from '@clerk/nextjs/server'
import { NextResponse, type NextRequest } from 'next/server'
import { deleteProject } from '@/lib/projects'

export async function DELETE(_req: NextRequest, { params }: { params: Promise<{ id: string }> }) {
  const { isAuthenticated, userId, sessionId, has } = await auth()
  if (!isAuthenticated) {
    return NextResponse.json({ error: 'Unauthenticated' }, { status: 401 })
  }

  // Step-up: strict_mfa reverification (verified in the last 10 minutes)
  if (!has({ reverification: 'strict_mfa' })) {
    return reverificationErrorResponse('strict_mfa')
  }

  // Live check: the session hasn't been revoked since this token was issued
  const client = await clerkClient()
  const session = await client.sessions.getSession(sessionId).catch(() => null)
  if (session?.status !== 'active') {
    return NextResponse.json({ error: 'Session ended' }, { status: 401 })
  }

  const { id } = await params
  await deleteProject(id, userId)
  return NextResponse.json({ deleted: id })
}
```

`getSession()` throws when the Backend API call fails, including the [404](https://github.com/clerk/openapi-specs/blob/cdd59c4139088a7f733e7fdf2aa73eb74877d967/bapi/2026-05-12.yml#L1087-L1111) for a session that no longer exists. `.catch(() => null)` routes a failed lookup to the same JSON 401, so the route fails closed.

In a Server Action, return `reverificationError('strict_mfa')` instead ([Server Action example](https://clerk.com/docs/guides/secure/reverification.md#example-reverification-in-a-server-action)). `reverificationError()` returns the same error as a plain object rather than a 403 `Response`, and both helpers come from `@clerk/nextjs/server`.

Keep `reverification` in its own `has()` call. Combining it with `role`, `permission`, `feature`, or `plan` in one call was the subject of security advisory [GHSA-w24r-5266-9c3c](https://github.com/clerk/javascript/security/advisories/GHSA-w24r-5266-9c3c), fixed in `@clerk/nextjs` 7.2.4.

### Prompt and retry on the client with `useReverification()`

[`useReverification()`](https://clerk.com/docs/nextjs/reference/hooks/use-reverification.md) catches the 403, shows Clerk's verification prompt, and after the user verifies, "the original request will automatically retry." This button calls the route above:

filename: app/projects/delete-project-button.tsx
```tsx
'use client'

import { useReverification } from '@clerk/nextjs'
import { isReverificationCancelledError } from '@clerk/nextjs/errors'

type DeleteResult = { deleted: string } | { error: string }

export function DeleteProjectButton({ id }: { id: string }) {
  const deleteProject = useReverification(async (): Promise<DeleteResult> => {
    const res = await fetch(`/api/projects/${id}`, { method: 'DELETE' })
    return res.json()
  })

  async function handleClick() {
    try {
      const result = await deleteProject()
      if ('error' in result) console.error(result.error)
    } catch (err) {
      if (isReverificationCancelledError(err)) return
      console.error(err)
    }
  }

  return <button onClick={handleClick}>Delete project</button>
}
```

Return JSON from every branch of the route, and check the body for an error. The hook resolves with the parsed body, JSON 4xx and 5xx responses included, while a text body or an empty 204 makes `res.json()` throw a `SyntaxError` ([source](https://github.com/clerk/javascript/blob/750e7fc544361b763089c21113f3297cb15b7ef2/packages/shared/src/react/hooks/useReverification.ts#L17-L33)). The fetcher returns typed `res.json()` without checking `res.ok`, since throwing there would hide the 403 that triggers the prompt.

Part 1 shows `useReverification()` [wrapping a batch of `session.revoke()` calls](https://clerk.com/articles/how-to-secure-monitor-and-revoke-user-sessions-with-clerk.md#sign-out-of-all-other-devices). For a custom prompt UI, use the hook's [`onNeedsReverification`](https://clerk.com/docs/nextjs/reference/hooks/use-reverification.md#onneedsreverification) option.

## Track sign-ins across devices with session webhooks and Application Logs

Session webhooks push events into your own alerting and audit systems, though delivery isn't guaranteed. Clerk's new-device protections warn or challenge the user at sign-in with no code, and Application Logs let you investigate afterward from the Dashboard or a terminal.

### Session webhook events

Clerk's backend software development kit (SDK) defines four `session.*` webhook event types ([event types](https://github.com/clerk/javascript/blob/750e7fc544361b763089c21113f3297cb15b7ef2/packages/backend/src/api/resources/Webhooks.ts#L38-L41)), each matching a session status ([`SessionStatus`](https://clerk.com/docs/nextjs/reference/types/session-status.md#properties)):

| Event             | Matching session status (Clerk's definition)                                                       |
| ----------------- | -------------------------------------------------------------------------------------------------- |
| `session.created` | `active`: "The session is valid and all activity is allowed."                                      |
| `session.ended`   | `ended`: the user signed out, "but the Session remains in the Client object"                       |
| `session.removed` | `removed`: the user signed out "and the Session was removed from the Client object"                |
| `session.revoked` | `revoked`: "The application ended the session and the Session was removed from the Client object." |

To subscribe, in the Clerk Dashboard, navigate to the [**Webhooks**](https://dashboard.clerk.com/~/webhooks) page. Its **Event Catalog** lists every supported event ([webhooks overview](https://clerk.com/docs/guides/development/webhooks/overview.md#supported-webhook-events)).

For offboarding audits, also subscribe to `user.updated` and `user.deleted`. The `user.updated` payload carries the user's `banned` and `locked` flags ([webhook spec](https://github.com/clerk/openapi-specs/blob/3b078e5e0c17ad5261f06cb00e0a0943614dacb0/webhooks/2025-04-15.yml#L4154-L4161)), plus `deprovisioned` after System for Cross-domain Identity Management (SCIM) deprovisioning ([Directory Sync](https://clerk.com/docs/guides/configure/auth-strategies/enterprise-connections/directory-sync.md#how-directory-sync-works)). The [offboarding table](https://clerk.com/articles/how-to-secure-monitor-and-revoke-user-sessions-with-clerk.md#offboarding-what-ban-lock-delete-and-scim-deprovisioning-do-to-sessions) in Part 1 lists the audit signal each action leaves.

**Use session webhooks for [audit logs](https://clerk.com/glossary.md#audit-logs) and alerts, and keep access decisions in `auth()`, reverification, and live session checks.** Clerk's webhooks are "not guaranteed to be delivered immediately or at all" ([webhooks overview](https://clerk.com/docs/guides/development/webhooks/overview.md)).

Delivery is [at least once](https://clerk.com/docs/guides/development/webhooks/overview.md#at-least-once-delivery), with retries until your [endpoint](https://clerk.com/glossary.md#endpoint) returns a 2xx or the retry schedule ends. Clerk's docs add that events "aren't guaranteed to arrive in the order they occurred" ([ordering](https://clerk.com/docs/guides/development/webhooks/overview.md#no-ordering-guarantee)).

Every retry carries the same `svix-id`, so deduplicate on it ([duplicates](https://clerk.com/docs/guides/development/webhooks/overview.md#handle-out-of-order-and-duplicate-events)). Respond within "a reasonable time-frame (15s with Svix)" ([Svix retries](https://docs.svix.com/retries)). The Open Worldwide Application Security Project (OWASP) recommends logging the [session lifecycle](https://clerk.com/glossary.md#session-lifecycle): applications should "record session related events, such as the creation, renewal, and destruction of session IDs" ([Session Management Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html#logging-sessions-life-cycle-monitoring-creation-usage-and-destruction-of-session-ids)).

### Verify session webhooks in a Next.js route handler

Verify each delivery with [`verifyWebhook()`](https://clerk.com/docs/reference/backend/verify-webhook.md) from `@clerk/nextjs/webhooks`, which reads your signing secret from `CLERK_WEBHOOK_SIGNING_SECRET`, then log only the fields you need ([syncing guide](https://clerk.com/docs/guides/development/webhooks/syncing.md#how-to-sync-clerk-data)):

filename: app/api/webhooks/route.ts
```ts
import { verifyWebhook } from '@clerk/nextjs/webhooks'
import type { NextRequest } from 'next/server'

export async function POST(req: NextRequest) {
  try {
    const evt = await verifyWebhook(req)

    switch (evt.type) {
      case 'session.created':
      case 'session.ended':
      case 'session.removed':
      case 'session.revoked':
        console.info('Clerk session event', {
          svixId: req.headers.get('svix-id'),
          type: evt.type,
          timestamp: evt.timestamp,
          userId: evt.data.user_id,
          status: evt.data.status,
        })
        break
    }

    return new Response('OK', { status: 200 })
  } catch (err) {
    console.error('Webhook verification failed', err)
    return new Response('Webhook verification failed', { status: 400 })
  }
}
```

Clerk retries any delivery that doesn't get a 2xx, so an event that fails verification while `CLERK_WEBHOOK_SIGNING_SECRET` is wrong can still arrive on a later attempt in the [retry schedule](https://clerk.com/docs/guides/development/webhooks/overview.md#retry) once you fix it.

`evt.timestamp` is the "timestamp in milliseconds of when the event occurred" ([payload structure](https://clerk.com/docs/guides/development/webhooks/overview.md#payload-structure)), so an [audit trail](https://clerk.com/glossary.md#event-audit-trail) can sort events by occurrence time, regardless of arrival order. `evt.data` keeps the payload's `snake_case` keys, such as `user_id`, unlike the camelCase backend [`Session`](https://clerk.com/docs/reference/backend/types/backend-session.md) object (`userId`) that `getSession()` returns ([webhook spec](https://github.com/clerk/openapi-specs/blob/3b078e5e0c17ad5261f06cb00e0a0943614dacb0/webhooks/2025-04-15.yml#L2971-L3037)).

The payload carries the full `user` object ([webhook spec](https://github.com/clerk/openapi-specs/blob/3b078e5e0c17ad5261f06cb00e0a0943614dacb0/webhooks/2025-04-15.yml#L4272-L4279)), so log only the fields you need. OWASP says session identification values "should usually not be recorded directly in the logs, but instead should be removed, masked, sanitized, hashed, or encrypted" ([Logging Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html#data-to-exclude)). Hash the session ID if you need to correlate events.

The quickstart's `proxy.ts` exports `clerkMiddleware()`, which leaves this route public: "By default, `clerkMiddleware()` doesn't protect any routes" ([public route](https://clerk.com/docs/guides/development/webhooks/syncing.md#ensure-the-webhook-route-is-public)). If your Proxy protects routes, exclude `/api/webhooks`.

To test locally, run `clerk webhooks listen` with `--forward-to` set to your local `/api/webhooks` URL. It opens a relay tunnel to your handler ([Clerk CLI changelog](https://clerk.com/changelog/2026-07-09-clerk-cli-webhooks-and-impersonate.md)). In the Clerk Dashboard, navigate to the [**Webhooks**](https://dashboard.clerk.com/~/webhooks) page, add the relay URL it prints as an endpoint, and set `CLERK_WEBHOOK_SIGNING_SECRET` to that endpoint's signing secret ([Clerk's webhooks agent skill](https://github.com/clerk/skills/blob/5561e36fde74c27d2f66aeab590348e237b712ab/skills/clerk-webhooks/SKILL.md#L336)).

### Built-in new-device protection: sign-in emails and Device Trust

When someone signs in from an unfamiliar device, Clerk emails the account owner with details "such as device type, operating system, IP address, location, and the sign-in method used" ([unauthorized sign-ins](https://clerk.com/docs/guides/secure/best-practices/unauthorized-sign-in.md)). "For supported instances, the email might also include a button that allows users to sign out from the unrecognized device." That sign-out option needs a paid plan for production use ([revoke sessions](https://clerk.com/docs/guides/secure/best-practices/unauthorized-sign-in.md#revoke-sessions-for-unauthorized-sign-ins)).

Since March 20, 2025, the email has been on by default for new apps, while older apps opt in ([changelog](https://clerk.com/changelog/2025-03-20-sign-in-emails.md)). To edit its **Sign in from new device** template, in the Clerk Dashboard, navigate to the [**Emails**](https://dashboard.clerk.com/~/customization/email) page.

Device Trust asks for a second factor when a user without MFA signs in from a new device, and it "only applies to password-based sign-ins" ([Device Trust](https://clerk.com/docs/guides/protect/device-trust.md)). It's on by default for apps created after November 14, 2025.

For older apps, in the Clerk Dashboard, navigate to the Protect → [**Sign-in security**](https://dashboard.clerk.com/~/protect/sign-in-security) page, select the settings icon in the **Device Trust** row, toggle on **Enable**, and select **Save**. Or set `auth_password.device_trust.enabled` with `clerk config patch`. Device Trust (first released as Client Trust) is included in all Clerk plans ([changelog](https://clerk.com/changelog/2025-11-14-client-trust-credential-stuffing-killer.md#free-for-everyone)).

Neither the new-device email nor Device Trust has a dedicated webhook event, so handle `session.created` to alert your security team through your own channels, such as Slack or a security information and event management (SIEM) tool.

### No-code option: Application Logs

In the Clerk Dashboard, the [**Logs**](https://dashboard.clerk.com/~/application-logs) page, which Clerk's docs call **Application Logs**, records `session.created`, `session.ended`, `session.revoked`, `session.token.created`, and `session.reverification.*` events, plus `user.banned`, `user.locked`, and `user.deleted` ([session events](https://clerk.com/docs/guides/dashboard/logs/application-logs.md#session-events), [user events](https://clerk.com/docs/guides/dashboard/logs/application-logs.md#user-events)). Filter by **Event type** (trailing wildcards such as `session.*` work), **Actor**, **Subject** (for example, a user ID), **IP address**, or **Device** ([filtering](https://clerk.com/docs/guides/dashboard/logs/overview.md#viewing-and-filtering-logs)).

Application Logs are available on every plan and keep 1 day of history on Hobby, 7 days on Pro, 30 days on Business, and a custom period on Enterprise ([plans and retention](https://clerk.com/docs/guides/dashboard/logs/overview.md#plans-and-retention)).

To investigate from a terminal, run [`clerk logs`](https://clerk.com/docs/guides/dashboard/logs/application-logs.md#query-logs-from-the-cli), which queries the same logs through the Backend API's `GET /v1/logs` endpoint. `clerk logs --follow` streams new events.

Clerk doesn't allow syncing or exporting logs through the Backend API ([export logs](https://clerk.com/docs/guides/dashboard/logs/application-logs.md#export-logs)), so stream session events to a SIEM with the webhook handler above. The Enterprise plan adds log sink destinations for a SIEM ([pricing](https://clerk.com/pricing)).

The Application Logs and webhook event lists differ. `session.removed` is webhook-only, and `session.token.created`, `session.expiry.updated`, and reverification events are log-only.

## Session management tools compared: Clerk, WorkOS, Auth0, and Supabase

This table compares how each vendor lists, revokes, and monitors a user's sessions. Here, "session" means each vendor's user-facing sign-in session: the WorkOS AuthKit session, the Auth0 session layer, and the Supabase `auth.sessions` refresh-token session. The table doesn't cover [SSO](https://clerk.com/glossary.md#single-sign-on-sso) handshakes or agent sessions.

| Capability                                          | Clerk                                                                                                                                                                                                                                                                                                                                                                                                         | WorkOS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Auth0                                                                                                                                                                                                                                                                                                                                                       | Supabase                                                                                                                                                                                                                                                                                                                |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| List a user's sessions                              | `user.getSessions()` (frontend) and `clerkClient.sessions.getSessionList({ userId })` (backend). [Frontend](https://clerk.com/docs/nextjs/reference/objects/user.md#getsessions), [backend](https://clerk.com/docs/reference/backend/sessions/get-session-list.md)                                                                                                                                            | `GET /user_management/users/{id}/sessions` (`listSessions`). [Docs](https://workos.com/docs/reference/authkit/session#list-sessions)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | `GET /api/v2/users/{user_id}/sessions`. [API](https://auth0.com/docs/api/management/v2/users/get-sessions-for-user), [how-to](https://auth0.com/docs/manage-users/sessions/manage-user-sessions-with-auth0-management-api)                                                                                                                                  | Not documented. The Sessions guide describes the `auth.sessions` table, keyed by the JSON Web Token (JWT) `session_id` claim. [Docs](https://supabase.com/docs/guides/auth/sessions)                                                                                                                                    |
| Revoke one session                                  | `session.revoke()` for the user's own other sessions, and `clerkClient.sessions.revokeSession(sessionId)` from the backend. [Frontend](https://clerk.com/docs/nextjs/reference/types/session-with-activities.md#revoke), [backend](https://clerk.com/docs/reference/backend/sessions/revoke-session.md)                                                                                                       | `POST /user_management/sessions/revoke` with a `session_id` (`revokeSession`). [Docs](https://workos.com/docs/reference/authkit/session#revoke-session)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | `DELETE /api/v2/sessions/{id}`, or `POST /api/v2/sessions/{id}/revoke` to also revoke refresh tokens. [Delete](https://auth0.com/docs/api/management/v2/sessions/delete-session), [revoke](https://auth0.com/docs/api/management/v2/sessions/revoke-session)                                                                                                | `signOut({ scope: 'local' })` ends the current session. Revoking another session by ID: Not documented. [Docs](https://supabase.com/docs/guides/auth/signout)                                                                                                                                                           |
| Sign out everywhere                                 | List with `getSessionList` and revoke each, use `setPasswordCompromised` with `revokeAllSessions`, or ban with `banUser()`, which also blocks sign-in. [Set compromised](https://clerk.com/docs/reference/backend/user/set-password-compromised.md), [ban](https://clerk.com/docs/reference/backend/user/ban-user.md)                                                                                         | Widgets API `revokeAllSessions` (early access) revokes all but the current session. A password reset revokes all sessions, and membership deactivation revokes the user's sessions for that organization only. Otherwise, list the user's sessions and revoke each one. [Widgets API](https://workos.com/docs/widgets-api/authentication#revoke-all-sessions), [reset](https://workos.com/docs/reference/authkit/password-reset), [membership](https://workos.com/blog/organization-membership-deactivate-vs-delete), [list](https://workos.com/docs/reference/authkit/session#list-sessions), [revoke](https://workos.com/docs/reference/authkit/session#revoke-session) | `DELETE /api/v2/users/{user_id}/sessions` deletes all sessions asynchronously and is eventually consistent. A separate call revokes refresh tokens. [API](https://auth0.com/docs/api/management/v2/users/delete-sessions-for-user), [how-to](https://auth0.com/docs/manage-users/sessions/manage-user-sessions-with-auth0-management-api)                   | `signOut()` defaults to the `global` scope in the JavaScript SDK and to `local` in Dart and Kotlin. `{ scope: 'others' }` keeps the current session. [Docs](https://supabase.com/docs/guides/auth/signout)                                                                                                              |
| Per-device metadata                                 | `SessionActivity`: `browserName`, `browserVersion`, `deviceType`, `ipAddress`, `city`, `country`, `isMobile`. [Backend type](https://clerk.com/docs/reference/backend/types/backend-session-activity.md), [frontend type](https://clerk.com/docs/nextjs/reference/types/session-with-activities.md#sessionactivity)                                                                                           | `ip_address`, `user_agent`, `auth_method`, and `organization_id` per session. The Widgets API adds city and country. [Docs](https://workos.com/docs/reference/authkit/session), [Widgets API](https://workos.com/docs/widgets-api/authentication#list-sessions)                                                                                                                                                                                                                                                                                                                                                                                                           | `device` object with the initial and last user agent, IP address, and autonomous system number (ASN). `session_metadata` holds custom key-value data. [Docs](https://auth0.com/docs/api/management/v2/sessions/get-session)                                                                                                                                 | The `ip` column in `auth.sessions` holds the session's IP address. Other device fields: Not documented. Audit log entries record `ip_address` only for some events, such as MFA and passkeys, and leave it empty for most sign-in, sign-out, and token events. [Docs](https://supabase.com/docs/guides/auth/audit-logs) |
| Session events and webhooks                         | `session.created`, `session.ended`, `session.removed`, and `session.revoked` webhook events. The Dashboard **Event Catalog** lists supported events. [Event types](https://github.com/clerk/javascript/blob/750e7fc544361b763089c21113f3297cb15b7ef2/packages/backend/src/api/resources/Webhooks.ts#L38-L41), [docs](https://clerk.com/docs/guides/development/webhooks/overview.md#supported-webhook-events) | `session.created` and `session.revoked` events, by webhooks or the Events API. [Docs](https://workos.com/docs/events#session)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | Not documented as an event type. Nearest: Log Streams and back-channel logout initiators such as `session-revoked`. [Events](https://auth0.com/docs/events), [Log Streams](https://auth0.com/docs/customize/log-streams), [initiators](https://auth0.com/docs/authenticate/login/logout/back-channel-logout/oidc-back-channel-logout-initiators)            | Session webhooks: Not documented. Auth audit logs record `login`, `logout`, and `token_revoked`. [Docs](https://supabase.com/docs/guides/auth/audit-logs)                                                                                                                                                               |
| Reverification / step-up                            | `useReverification()` (client) and `has({ reverification })` (server), with four preset levels or a custom window. Clerk-protected sensitive actions default to 10 minutes, configurable from 1 to 10. [Docs](https://clerk.com/docs/guides/secure/reverification.md)                                                                                                                                         | `auth_time` claim plus a `max_age` authorization parameter, and `checkRecentAuth()` in the Next.js SDK. [Docs](https://workos.com/docs/authkit/reauthentication), [SDK](https://workos.com/docs/sdks/authkit-nextjs)                                                                                                                                                                                                                                                                                                                                                                                                                                                      | The app sends `acr_values`, an Action challenges for MFA, and the app checks `amr`. `max_age` with `auth_time` covers freshness. [Step-up](https://auth0.com/docs/secure/multi-factor-authentication/step-up-authentication/configure-step-up-authentication-for-web-apps), [`max_age`](https://auth0.com/docs/authenticate/login/max-age-reauthentication) | `reauthenticate()` covers password changes, and row-level security (RLS) policies can check `aal2` and `amr` timestamps. [Password](https://supabase.com/docs/guides/auth/password-security), [MFA](https://supabase.com/docs/guides/auth/auth-mfa)                                                                     |
| Prebuilt end-user session UI (embeddable component) | `<UserProfile />` Security page lists active devices with a per-device sign-out. [Component](https://clerk.com/docs/nextjs/reference/components/user/user-profile.md), [source](https://github.com/clerk/javascript/blob/750e7fc544361b763089c21113f3297cb15b7ef2/packages/ui/src/components/UserProfile/SecurityPage.tsx#L18-L22), [pricing](https://clerk.com/pricing)                                      | `<UserSessions />` widget lists active sessions and lets users sign out of individual sessions. [Docs](https://workos.com/docs/widgets/user-sessions)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Not documented. Universal Components cover Organization admin, MFA factors, and passkeys. [Docs](https://auth0.com/docs/get-started/universal-components/universal-components-overview)                                                                                                                                                                     | Not documented. The Library's auth blocks are password, social, current-user avatar, and OAuth consent. [Docs](https://supabase.com/library)                                                                                                                                                                            |

"Not documented" means the vendor's public docs don't describe the behavior. Plan notes from each vendor's own pages:

- Clerk: device tracking and revocation are included in every plan. MFA, which supplies reverification's second factor, needs a paid plan for production use ([pricing](https://clerk.com/pricing)). For log retention and the user ban plan note, see [Application Logs](#no-code-option-application-logs) and Part 1's [offboarding section](https://clerk.com/articles/how-to-secure-monitor-and-revoke-user-sessions-with-clerk.md#offboarding-what-ban-lock-delete-and-scim-deprovisioning-do-to-sessions).
- WorkOS: the [pricing page](https://workos.com/pricing) and the docs linked above state no plan requirement for these features. The Widgets API launched in early access on July 3, 2026 ([changelog](https://workos.com/changelog/widgets-api)).
- Auth0: the [session Management API endpoints](https://auth0.com/docs/manage-users/sessions/manage-user-sessions-with-auth0-management-api) in the first four rows and OpenID Connect (OIDC) [Back-Channel Logout](https://auth0.com/docs/authenticate/login/logout/back-channel-logout) are on Enterprise plans. Log Streaming and MFA factors start at the Essentials plan ([pricing](https://auth0.com/pricing)).
- Supabase: the [pricing page](https://supabase.com/pricing) lists Auth Audit Logs at 24 hours on Free, 7 days on Pro, and 28 days on Team. Supabase can also store audit events in the optional `auth.audit_log_entries` Postgres table ([audit logs](https://supabase.com/docs/guides/auth/audit-logs)).

To put both parts to work, start with the [active devices list](https://clerk.com/articles/how-to-secure-monitor-and-revoke-user-sessions-with-clerk.md#let-users-see-and-sign-out-their-own-devices) from Part 1, then add the live session check to the route where a stale session would do the most damage.

## In this series

1. [How to secure, monitor, and revoke user sessions with Clerk](https://clerk.com/articles/how-to-secure-monitor-and-revoke-user-sessions-with-clerk.md)
2. **How to secure, monitor, and revoke user sessions with Clerk - Part 2** (you are here)


## Series

- Part 1 of 2: https://clerk.com/articles/how-to-secure-monitor-and-revoke-user-sessions-with-clerk.md
