Refactored authInterceptor to a separate file