decord/beta/source/utils/AuthenticationUtils.tsx

33 lines
878 B
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 7357
// Function ID: 7358
// Name: AuthenticationUtils
2026-10-12 16:32:48 +00:00
// Dependencies: [1111, 7358, 2]
// Exports: getArtForPath, getToken, isAuthenticated
2026-10-12 16:32:48 +00:00
// Module 7357 (AuthenticationUtils)
2026-10-07 22:43:51 +00:00
import TokenManagerAll from "TokenManager" /* 1111 */;
2026-10-12 16:32:48 +00:00
import AssetRegistry from "AssetRegistry" /* 7358 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("utils/AuthenticationUtils.tsx");
export const getToken = function getToken() {
2026-10-01 14:13:23 +00:00
const obj = TokenManagerAll;
return obj.getToken();
};
export const isAuthenticated = function isAuthenticated() {
2026-10-01 14:13:23 +00:00
const obj = TokenManagerAll;
return null != obj.getToken();
};
export const getArtForPath = function getArtForPath(arg0) {
let tmp = null;
if (null != arg0) {
tmp = null;
2026-10-01 14:13:23 +00:00
const obj = /^\/developers/;
if (obj.test(arg0)) {
2026-10-01 14:13:23 +00:00
tmp = AssetRegistry;
}
}
return tmp;
};