DeviceSecret

public struct DeviceSecret
extension DeviceSecret: Decodable

The device secret which is received upon device registration.

  • The device secret

    Declaration

    Swift

    public let secret: String
  • The device id tied to this device secret

    Declaration

    Swift

    public let deviceId: String
  • Expiry of this device secret

    Declaration

    Swift

    public let expiryInSeconds: Int
  • Initialzer to construct a DeviceSecret using decoder

    Throws

    DecodingError when decoding fails

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    decoder