retrieveAllActiveCredentials(_:)
Returns a set of the active credentials.
Declaration
func retrieveAllActiveCredentials(_ completion: @escaping @Sendable (Set<THCredentials>?, (any Error)?) -> Void)func allActiveCredentials() async throws -> Set<THCredentials>Parameters
- completion:
The completion handler the framework calls when the active credentials become available.
Mentioned in
Discussion
Call the method as follows:
func obtainAllActiveCredentials() async -> (Set<THCredentials>?, Error?) {
let client = THClient()
var credentials: Set<THCredentials>?
var err:Error?
do {
credentials = try await client.allActiveCredentials()
} catch {
err = error
}
return (credentials, err)
}