Client
Server
Reference / @open-music-sdk/developer-token / mintDeveloperToken
function mintDeveloperToken(options): Promise<string>;Defined in: mint.ts:133
Signs a developer token: an ES256 JWT with iss, iat, exp, and optionally origin.
The key, whose it is, and what the token says about itself.
Promise<string>
The token in its compact form, as Apple takes it after Bearer.
TypeError if an option is not what it should be, or pem is not a PKCS8 P-256 private key. The function is async, so this is a rejection: nothing is thrown before the promise is made.