decord/alpha/source/utils/AuthenticationUtils.tsx

33 lines
878 B
TypeScript
Raw Permalink Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 7357
// Function ID: 7358
// Name: AuthenticationUtils
2026-10-12 06:59:38 +00:00
// Dependencies: [1111, 7358, 2]
2026-07-29 08:29:29 +00:00
// Exports: getArtForPath, getToken, isAuthenticated
2026-07-20 16:05:17 +00:00
2026-10-12 06:59:38 +00:00
// Module 7357 (AuthenticationUtils)
2026-10-03 08:58:59 +00:00
import TokenManagerAll from "TokenManager" /* 1111 */;
2026-10-12 06:59:38 +00:00
import AssetRegistry from "AssetRegistry" /* 7358 */;
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() {
2026-10-03 08:58:59 +00:00
const obj = TokenManagerAll;
return obj.getToken();
2026-07-29 08:29:29 +00:00
};
2026-07-20 16:05:17 +00:00
export const isAuthenticated = function isAuthenticated() {
2026-10-03 08:58:59 +00:00
const obj = TokenManagerAll;
return null != obj.getToken();
2026-07-20 16:05:17 +00:00
};
export const getArtForPath = function getArtForPath(arg0) {
let tmp = null;
if (null != arg0) {
tmp = null;
2026-10-03 08:58:59 +00:00
const obj = /^\/developers/;
2026-07-20 16:05:17 +00:00
if (obj.test(arg0)) {
2026-10-03 08:58:59 +00:00
tmp = AssetRegistry;
2026-07-20 16:05:17 +00:00
}
}
return tmp;
};