Initial frontend import
This commit is contained in:
13
src/walletToken.ts
Normal file
13
src/walletToken.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
const KEY = "ark_wallet_token";
|
||||
|
||||
export function getWalletToken() {
|
||||
return localStorage.getItem(KEY) || "";
|
||||
}
|
||||
|
||||
export function setWalletToken(t: string) {
|
||||
localStorage.setItem(KEY, t);
|
||||
}
|
||||
|
||||
export function clearWalletToken() {
|
||||
localStorage.removeItem(KEY);
|
||||
}
|
||||
Reference in New Issue
Block a user