KbaCreateCallback
public class KbaCreateCallback : AbstractCallback, ObservableObject, @unchecked Sendable
A callback that is responsible to define and create Knowledge Based Authentication question and answer for a user.
-
Declaration
Swift
private(set) public var prompt: String { get } -
An array of predefined knowledge based authentication questions
Declaration
Swift
private(set) public var predefinedQuestions: [String] { get } -
A string value of the selected question from the user interaction
Declaration
Swift
public var selectedQuestion: String -
A string value of the answer from the user interaction
Declaration
Swift
public var selectedAnswer: String -
A boolean flag indicating whether user-defined questions are allowed.
Declaration
Swift
public var allowUserDefinedQuestions: Bool -
Initializes a new instance of
KbaCreateCallbackwith the provided JSON input.Declaration
Swift
public override func initValue(name: String, value: Any) -
Returns the payload with the question and answer values.
Declaration
Swift
public override func payload() -> [String : Any]
View on GitHub