MimiDeviceAuthRequest
public struct MimiDeviceAuthRequest : Codable
Object that describes an authorization request from a device.
-
User Code.
Declaration
Swift
public let userCode: String
-
Device Code.
Declaration
Swift
public let deviceCode: String?
-
Expiry date of the request.
Declaration
Swift
public let expiryDate: Date?
-
Whether the request has expired.
Declaration
Swift
public var hasExpired: Bool { get }
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Create a device authorization request from scanned QR Code data.
Declaration
Swift
public static func fromQRCode(data: Data) throws -> MimiDeviceAuthRequest
Parameters
data
Scanned data.
-
Generate a QR Code image that contains the data for the request.
The generated image will have a transparent background and use a template rendering mode, allowing for it to be tinted as desired.
Declaration
Swift
public func generateQRCode(size: CGSize) -> UIImage?
Parameters
size
Size of the image to generate.