-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with interceptor #3468
Comments
We try again: // Network.swift enum NetworkError: Error { class Network {
transport, store: store)
} class UserManagementInterceptor: ApolloInterceptor {
} |
@Jensileus, Xcode is able to add the stubs to your code for
I don't understand the question - is what built in? |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better. |
Question
I have some problems with my Network.swift that is the apollo clent and handler,
//Network.swift
import Foundation
import Apollo
import FixiAPI
enum NetworkError: Error {
case userNotFound
case networkFailure
case missingToken
}
class Network {
static let shared = Network()
private let authManager = AuthenticationManager()
}
import Foundation
import Apollo
class Tokeninterceptor: ApolloInterceptor {
private let authManager: AuthenticationManager
} this was a mix but the main problem is this: Type 'Tokeninterceptor' does not conform to protocol 'ApolloInterceptor' <- why?
The text was updated successfully, but these errors were encountered: