//
//  NetworkInterceptorProvider.swift
//  habanero
//
//  Created by Scott Dodge on 12/27/20.
//

import Foundation
import Apollo

class NetworkInterceptorProvider: LegacyInterceptorProvider {

    override func interceptors<Operation: GraphQLOperation>(for operation: Operation) -> [ApolloInterceptor] {
        var interceptors = super.interceptors(for: operation)
        interceptors.insert(TokenAddingInterceptor(), at: 0)
        return interceptors
    }
}
