decord/source/utils/AuthenticationUtils.tsx

31 lines
823 B
TypeScript
Raw Normal View History

2026-08-31 15:47:37 +00:00
// Module ID: 1367
// Function ID: 1368
2026-07-20 16:05:17 +00:00
// Name: getToken
2026-08-31 15:47:37 +00:00
// Dependencies: [707, 1368, 2]
2026-07-29 08:29:29 +00:00
// Exports: getArtForPath, getToken, isAuthenticated
2026-07-20 16:05:17 +00:00
2026-08-31 15:47:37 +00:00
// Module 1367 (getToken)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import setSecondaryTokenAll from "setSecondaryToken" /* 707 */;
2026-08-31 15:47:37 +00:00
import registerAsset from "registerAsset" /* 1368 */;
2026-08-24 06:08:38 +00:00
const result = set.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() {
2026-08-24 06:08:38 +00:00
return setSecondaryTokenAll.getToken();
2026-07-29 08:29:29 +00:00
};
2026-07-20 16:05:17 +00:00
export const isAuthenticated = function isAuthenticated() {
2026-08-24 06:08:38 +00:00
return null != setSecondaryTokenAll.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)) {
2026-08-24 06:08:38 +00:00
tmp = registerAsset;
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;
};