RedeemToken
public struct RedeemToken : Codable
A RedeemToken
instance contains information to be redeemed in order to trigger FIDO UAF operations.
The information is extracted from different channels like QR-Code, Push Notification, etc.
-
The token to be redeemed.
Declaration
Swift
public let token: String
-
The URL this token can be redeemed against.
Declaration
Swift
public let redeemUrl: String
-
The optional additional information that was provided when triggering the out-of-band operation.
Note
the format of theString
is defined by the nevisFIDO client triggering the operation. It can be plain text or JSON for example.See
thedata
attribute described in the “Dispatch Token Request Format” section of the nevisFIDO reference guide for additional information.Declaration
Swift
public let data: String?
-
Creates a new
RedeemToken
instance.Declaration
Swift
public init(token: String, redeemUrl: String, data: String? = nil)
Parameters
token
The token to be redeemed.
redeemUrl
The URL this token can be redeemed against.