Skip to content
Client
Server

Reference / @open-music-sdk/core / tTokenContext

Interface: tTokenContext ​

Defined in: packages/core/src/client.ts:16

What a token provider is told when it is asked for a token.

Properties ​

rejected? ​

ts
readonly optional rejected?: string;

Defined in: packages/core/src/client.ts:20

The token Apple just rejected with a 401. A caching provider should mint or fetch a fresh one.


signal? ​

ts
readonly optional signal?: AbortSignal;

Defined in: packages/core/src/client.ts:18

The signal of the request the token is for, when it has one: a provider that fetches its token can pass it on.

MIT licensed. Not affiliated with, endorsed by, or sponsored by Apple Inc. Apple Music and MusicKit are trademarks of Apple Inc.