decord/alpha/source/utils/AuthenticationUtils.tsx

31 lines
822 B
TypeScript
Raw Normal View History

// Module ID: 7254
// Function ID: 7255
// Name: AuthenticationUtils
// Dependencies: [1100, 7255, 2]
2026-07-29 08:29:29 +00:00
// Exports: getArtForPath, getToken, isAuthenticated
2026-07-20 16:05:17 +00:00
// Module 7254 (AuthenticationUtils)
import TokenManagerAll from "TokenManager" /* 1100 */;
import _mod7255 from "module_7255" /* 7255 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("utils/AuthenticationUtils.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const getToken = function getToken() {
return TokenManagerAll.getToken();
2026-07-29 08:29:29 +00:00
};
2026-07-20 16:05:17 +00:00
export const isAuthenticated = function isAuthenticated() {
return null != TokenManagerAll.getToken();
2026-07-20 16:05:17 +00:00
};
export const getArtForPath = function getArtForPath(arg0) {
let tmp = null;
if (null != arg0) {
tmp = null;
if (obj.test(arg0)) {
tmp = _mod7255;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj = /^\/developers/;
2026-07-20 16:05:17 +00:00
}
return tmp;
};