StorageFile

The JSON document stored per target set (session token, cached result and nag state).

On this page

The JSON document stored per target set (session token, cached result and nag state).

import type { StorageFile } from "@sponsorkit/sdk";

interface StorageFile { … }

Interface, exported from @sponsorkit/sdk, @sponsorkit/sdk/node, @sponsorkit/sdk/server.

Properties#

v#

v: 1

sessionToken#

sessionToken?: string | null

cache#

cache?: { result: ContributionResult; storedAt: string } | null

Type: ContributionResult

nags#

nags?: Record<string, NagState>

Type: NagState