IdpValidationUtils
@MainActor
public struct IdpValidationUtils
Utility class for common IdP validation operations
-
Validates that a top view controller is available for presenting authentication UI
Throws
IdpExceptions.illegalStateException if no view controller is foundDeclaration
Swift
@MainActor public static func validateTopViewController() throws -> UIViewControllerReturn Value
The top view controller
-
Validates that a client ID is provided and not empty
Throws
IdpExceptions.illegalArgumentException if client ID is invalidDeclaration
Swift
@MainActor public static func validateClientId(_ clientId: String?, provider: String) throwsParameters
clientIdThe client ID to validate
providerThe name of the provider (for error messaging)
View on GitHub