forked from cerc-io/laconic-wallet-web
640155aa4a
* Basic setup for react native web * Comment unsupported react-native code * Add interface for keychain methods * Fix storeNetworkData method * Use mui dialog component * Modify key store file name * Fix add network and edit network screens * Fix sign message screen * Use light theme --------- Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
18 lines
427 B
TypeScript
18 lines
427 B
TypeScript
const setInternetCredentials = (name:string, username:string, password:string) => {
|
|
localStorage.setItem(name, password);
|
|
};
|
|
|
|
const getInternetCredentials = (name:string) : string | null => {
|
|
return localStorage.getItem(name);
|
|
};
|
|
|
|
const resetInternetCredentials = (name:string) => {
|
|
localStorage.removeItem(name);
|
|
};
|
|
|
|
export {
|
|
setInternetCredentials,
|
|
getInternetCredentials,
|
|
resetInternetCredentials
|
|
}
|