diff --git a/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate+OAuth.swift b/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate+OAuth.swift index 608001356..1a014e5f6 100644 --- a/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate+OAuth.swift +++ b/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate+OAuth.swift @@ -61,7 +61,7 @@ extension FeedlyAccountDelegate { } } -extension FeedlyAccountDelegate: OAuthAccessTokenRefreshing { +extension FeedlyAccountDelegate { func refreshAccessToken(with refreshToken: String, client: OAuthAuthorizationClient) async throws -> OAuthAuthorizationGrant { diff --git a/Account/Sources/Account/Feedly/OAuthAcessTokenRefreshing.swift b/Account/Sources/Account/Feedly/OAuthAcessTokenRefreshing.swift index a40b9b84a..386a859c7 100644 --- a/Account/Sources/Account/Feedly/OAuthAcessTokenRefreshing.swift +++ b/Account/Sources/Account/Feedly/OAuthAcessTokenRefreshing.swift @@ -28,9 +28,3 @@ public struct OAuthRefreshAccessTokenRequest: Encodable, Sendable { self.clientSecret = client.secret } } - -/// Implemented by concrete types to perform the actual request. -protocol OAuthAccessTokenRefreshing: AnyObject { - - @MainActor func refreshAccessToken(with refreshToken: String, client: OAuthAuthorizationClient) async throws -> OAuthAuthorizationGrant -}