<commit_before>define([
	'knockout',
	'appConfig',
	'services/AuthAPI',
], function (
	ko,
	appConfig,
	authApi
) {
	class Route {
		checkPermission() {
			if (
				appConfig.userAuthenticationEnabled &&
				((authApi.token() != null && authApi.tokenExpirationDate() > new Date()) ||
					authApi.authProvider() === authApi.AUTH_PROVIDERS.IAP)
			) {
				return authApi.refreshToken();<commit_msg>Changed call from /refresh to /me endpoint in case of IAP Provider (#1974)<commit_after>define([
	'knockout',
	'appConfig',
	'services/AuthAPI',
], function (
	ko,
	appConfig,
	authApi
) {
	class Route {
		checkPermission() {
			if (authApi.authProvider() === authApi.AUTH_PROVIDERS.IAP) {
				return authApi.loadUserInfo();
			} else if (appConfig.userAuthenticationEnabled && authApi.token() != null && authApi.tokenExpirationDate() > new Date()) {
				return authApi.refreshToken();
{'fraction_non_alphanumeric': 0.15079365079365079, 'fraction_numerical': 0.0045351473922902496, 'mean_word_length': 4.450617283950617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6913636', 'n_tokens_mistral': 324, 'n_tokens_neox': 288, 'n_words': 59}