2022-06-05 11:47:58 +02:00
|
|
|
import Foundation
|
|
|
|
|
|
|
|
/**
|
|
|
|
An object to store the necessary information to authenticate a device to the server.
|
|
|
|
*/
|
2022-06-05 12:10:38 +02:00
|
|
|
public struct DeviceAuthentication: Codable {
|
2022-06-05 11:47:58 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
The push token of the device.
|
|
|
|
|
|
|
|
The token is used to uniquely identify the device.
|
|
|
|
*/
|
|
|
|
let pushToken: PushToken
|
|
|
|
|
|
|
|
/**
|
|
|
|
The authentication token of the device.
|
|
|
|
|
|
|
|
This token is created by the server during device registration, and used for all subsequent requests.
|
|
|
|
*/
|
|
|
|
let authentication: AuthenticationToken
|
|
|
|
|
|
|
|
}
|