Initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
const TOKEN_KEY = 'desktop_member_token_v2'
|
||||
|
||||
export function getToken() {
|
||||
return localStorage.getItem(TOKEN_KEY) || ''
|
||||
}
|
||||
|
||||
export function setToken(token) {
|
||||
localStorage.setItem(TOKEN_KEY, token)
|
||||
}
|
||||
|
||||
export function removeToken() {
|
||||
localStorage.removeItem(TOKEN_KEY)
|
||||
}
|
||||
Reference in New Issue
Block a user