PageSourceSearch

https://rekrutacja.pedagogium.pl/pdg-irk-app/content/script/irk/in…/loginRequiredInterceptor.js

js pedagogium.pl collected 2026-10-04 13:34:05 UTC 777 bytes, 23 lines download raw bytes

1angular
2	.module('irk')
3	.factory('loginRequiredInterceptor', function($rootScope, $q, $templateCache, AUTH_ERRORS) {
4		var responseInterceptor = {
5		        responseError: function(rejectReason) { 
6		        	if(rejectReason.status === 401) {
7		        		$templateCache.remove(rejectReason.config.url);
8			        	var deferred = $q.defer();
9				        var req = {
10				           config: rejectReason.config,
11				           deferred: deferred
12				        };
13				        $rootScope.$broadcast(AUTH_ERRORS.loginRequired);
14			        	return deferred.promise;
15		        	}
16		        	return $q.reject(rejectReason);
17		        }
18		    };
19		    return responseInterceptor;
20	}).
21	config(function($httpProvider) {
22	  $httpProvider.interceptors.push('loginRequiredInterceptor');
23	});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.