TwitchAuthorizationManager

@available(iOS 13.0, *)
public class TwitchAuthorizationManager

The TwitchAuthorizationManager is responsible for managing the oauth2 bearer token flow with the Twitch server.

Properties

  • Singleton instance of the Authorization manager.

    Declaration

    Swift

    public static let sharedInstance: TwitchAuthorizationManager
  • The Client Id used for authorization.

    Declaration

    Swift

    public var clientID: String?
  • The Client Secret used for authorization.

    Declaration

    Swift

    public var clientSecret: String?
  • The Redirect URI used for authorization.

    Declaration

    Swift

    public var redirectURI: String?
  • The scopes the user is authorized.

    Declaration

    Swift

    public var scopes: String?
  • Authorization token Read Only.

    Declaration

    Swift

    public var authToken: String? { get }
  • Scopes authorized from server Read Only.

    Declaration

    Swift

    public var authorizedScopes: [String]? { get }
  • View controller that will present the webview for authorization, the “app context”

    Declaration

    Swift

    public var contextProvider: UIViewController?
  • Credentials from the server, contains authorized scopes and the auth token this can be used to set the auth token without going through the built in authorization flow

    Declaration

    Swift

    public var credentials: Credentials? { get set }

Public Functions