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