react-session-control
Version:
Component to provide session control. It controls how long the user can be inactive and observes the storage checking for token existence.
18 lines (17 loc) • 933 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const UnauthenticatedSessionControl_1 = __importDefault(require("./UnauthenticatedSessionControl"));
exports.UnauthenticatedSessionControl = UnauthenticatedSessionControl_1.default;
const AuthenticatedSessionControl_1 = __importStar(require("./AuthenticatedSessionControl"));
exports.AuthenticatedSessionControl = AuthenticatedSessionControl_1.default;
exports.LogoutTypes = AuthenticatedSessionControl_1.LogoutTypes;