diff --git a/native/swift/Sources/wordpress-api/Exports.swift b/native/swift/Sources/wordpress-api/Exports.swift index c08b2c74..49ca3156 100644 --- a/native/swift/Sources/wordpress-api/Exports.swift +++ b/native/swift/Sources/wordpress-api/Exports.swift @@ -26,6 +26,7 @@ public typealias UrlDiscoveryAttemptError = WordPressAPIInternal.UrlDiscoveryAtt // MARK: - Users +public typealias UserId = WordPressAPIInternal.UserId public typealias SparseUser = WordPressAPIInternal.SparseUser public typealias UserWithViewContext = WordPressAPIInternal.UserWithViewContext public typealias UserWithEditContext = WordPressAPIInternal.UserWithEditContext diff --git a/native/swift/Sources/wordpress-api/LoginAPI.swift b/native/swift/Sources/wordpress-api/LoginAPI.swift index ac34d4e3..fe843c54 100644 --- a/native/swift/Sources/wordpress-api/LoginAPI.swift +++ b/native/swift/Sources/wordpress-api/LoginAPI.swift @@ -33,7 +33,7 @@ public final class WordPressLoginClient { appName: String, appId: WpUuid?, authenticator: AuthenticatorProtocol - ) async throws -> WpApiApplicationPasswordDetails { + ) async throws(WordPressLoginClientError) -> WpApiApplicationPasswordDetails { let loginURL = try await self.loginURL(forSite: site) let authURL = createApplicationPasswordAuthenticationUrl( loginUrl: loginURL, @@ -138,7 +138,7 @@ extension WordPressLoginClient { site: String, appName: String, appId: WpUuid? - ) async throws -> WpApiApplicationPasswordDetails { + ) async throws(WordPressLoginClientError) -> WpApiApplicationPasswordDetails { let provider = await AuthenticationServiceAuthenticator() return try await login( site: site,