decord/source/utils/AuthenticationUtils.tsx

31 lines
825 B
TypeScript
Raw Normal View History

// Module ID: 7668
// Function ID: 7669
2026-07-20 16:05:17 +00:00
// Name: getToken
// Dependencies: [1099, 7669, 2]
2026-07-29 08:29:29 +00:00
// Exports: getArtForPath, getToken, isAuthenticated
2026-07-20 16:05:17 +00:00
// Module 7668 (getToken)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import setSecondaryTokenAll from "setSecondaryToken" /* 1099 */;
import registerAsset from "registerAsset" /* 7669 */;
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;
};