decord/alpha/source/utils/AuthenticationUtils.tsx

30 lines
822 B
TypeScript

// Module ID: 7864
// Function ID: 7865
// Name: AuthenticationUtils
// Dependencies: [1100, 7865, 2]
// Exports: getArtForPath, getToken, isAuthenticated
// Module 7864 (AuthenticationUtils)
import TokenManagerAll from "TokenManager" /* 1100 */;
import _mod7865 from "module_7865" /* 7865 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("utils/AuthenticationUtils.tsx");
export const getToken = function getToken() {
return TokenManagerAll.getToken();
};
export const isAuthenticated = function isAuthenticated() {
return null != TokenManagerAll.getToken();
};
export const getArtForPath = function getArtForPath(arg0) {
let tmp = null;
if (null != arg0) {
tmp = null;
if (obj.test(arg0)) {
tmp = _mod7865;
}
obj = /^\/developers/;
}
return tmp;
};