bunway
    Preparing search index...

    Interface VaultStore

    interface VaultStore {
        consume(jti: string): Promise<false | VaultEntry | null>;
        revokeFamily(familyId: string): Promise<void>;
        set(jti: string, entry: VaultEntry): Promise<void>;
    }

    Implemented by

    Index

    Methods

    • Atomically consume a token entry. Returns the entry if valid (first use). Returns null if the jti is unknown or was already revoked via revokeFamily. Returns false if the jti was already consumed (reuse attack signal).

      Parameters

      • jti: string

      Returns Promise<false | VaultEntry | null>

    • Revoke all tokens belonging to a family (breach response / logout-all).

      Parameters

      • familyId: string

      Returns Promise<void>

    • Persist a newly issued refresh token entry.

      Parameters

      Returns Promise<void>