AuthInfo.swift from Peter-Schorn/SpotifyAPI
// Source: https://github.com/Peter-Schorn/SpotifyAPI | License: MIT | Copyright 2020 Peter Schorn // Provided via justclaw.it.com; keep this notice with the code. import Foundation /** The authorization information that Spotify returns during the authorization process. This is used in various different contexts, including: * When decoding the response after requesting the access and refresh tokens * When decoding the response after refreshing the tokens * As a wrapper for decoding and encoding the authorization managers. Because of its diverse uses, all of its properties are optional, which means that it will never fail to decode itself from data, so be careful about swallowing errors. Includes the following properties: * ``accessToken``: used in all of the requests t ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key