@graphteon/juricode
Version:
We are forging the future with lines of digital steel
25 lines • 987 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.clearLoginData = exports.getLoginMethod = exports.setLoginMethod = exports.LoginMethod = exports.LOCAL_STORAGE_KEYS = void 0;
exports.LOCAL_STORAGE_KEYS = {
LOGIN_METHOD: "openhands_login_method",
};
var LoginMethod;
(function (LoginMethod) {
LoginMethod["GITHUB"] = "github";
LoginMethod["GITLAB"] = "gitlab";
})(LoginMethod || (exports.LoginMethod = LoginMethod = {}));
const setLoginMethod = (method) => {
localStorage.setItem(exports.LOCAL_STORAGE_KEYS.LOGIN_METHOD, method);
};
exports.setLoginMethod = setLoginMethod;
const getLoginMethod = () => {
const method = localStorage.getItem(exports.LOCAL_STORAGE_KEYS.LOGIN_METHOD);
return method;
};
exports.getLoginMethod = getLoginMethod;
const clearLoginData = () => {
localStorage.removeItem(exports.LOCAL_STORAGE_KEYS.LOGIN_METHOD);
};
exports.clearLoginData = clearLoginData;
//# sourceMappingURL=local-storage.js.map