diff --git a/Sources/UBFoundation/Networking/UBURLRequestModifier+TokenAuthorization.swift b/Sources/UBFoundation/Networking/UBURLRequestModifier+TokenAuthorization.swift index f80b6ed5..91a257a0 100644 --- a/Sources/UBFoundation/Networking/UBURLRequestModifier+TokenAuthorization.swift +++ b/Sources/UBFoundation/Networking/UBURLRequestModifier+TokenAuthorization.swift @@ -12,12 +12,12 @@ public protocol UBURLRequestTokenAuthorization: UBURLRequestModifier { /// Fetches the token and returns it /// /// - Parameter completion: The completion should be called with success or failure - func getToken(completion: @escaping (Result) -> Void) + func getToken(completion: @escaping @Sendable (Result) -> Void) } public extension UBURLRequestTokenAuthorization { /// :nodoc: - func modifyRequest(_ originalRequest: UBURLRequest, completion: @escaping (Result) -> Void) { + func modifyRequest(_ originalRequest: UBURLRequest, completion: @escaping @Sendable (Result) -> Void) { getToken { result in var modifierRequest = originalRequest switch result {