TOTPSetupDetails

public struct TOTPSetupDetails
  • Secret code returned by the service to help setting up TOTP

    Declaration

    Swift

    public let sharedSecret: String
  • username that will be used to construct the URI

    Declaration

    Swift

    public let username: String
  • Declaration

    Swift

    public init(sharedSecret: String, username: String)
  • Returns a TOTP setup URI that can help the customers avoid barcode scanning and use native password manager to handle TOTP association Example: On iOS and MacOS, URI will redirect to associated Password Manager for the platform

    throws AuthError.validation if a URL cannot be formed with the supplied parameters (for example, if the parameter string contains characters that are illegal in a URL, or is an empty string).

    Declaration

    Swift

    public func getSetupURI(
        appName: String,
        accountName: String? = nil) throws -> URL