method MemoryRefreshTokenStore.prototype.rotate
MemoryRefreshTokenStore.prototype.rotate(
jti: string,
): Promise<IRefreshTokenRotation>

Atomically consume a live refresh token and persist its successor.

Remote implementations must make the conditional live-token check, parent revocation, successor write, and family-revoked-marker check one atomic operation. This prevents two concurrent refresh requests from minting independent descendants and prevents a rotation after family revocation.

Parameters

jti: string

Return Type

Usage

import { MemoryRefreshTokenStore } from "auth-plugin/src/index.ts";