Contents

developerToken(options:)

Fetches and returns a developer token for Apple Music API.

Declaration

func developerToken(options: MusicTokenRequestOptions) async throws -> String

Discussion

If you opt to create a custom implementation of the MusicDeveloperTokenProvider protocol, make sure to discard any cached developer token if the options parameter contains ignoreCache.

You can add the newly generated token to an in-memory or persistent cache for faster access upon subsequent requests for this token.