You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
318 B
13 lines
318 B
import { SESSIONSTORAGE_TOKEN_KEY } from './constant'
|
|
|
|
export function getToken() {
|
|
return sessionStorage[SESSIONSTORAGE_TOKEN_KEY]
|
|
}
|
|
|
|
export function setToken(token: string) {
|
|
sessionStorage[SESSIONSTORAGE_TOKEN_KEY] = token
|
|
}
|
|
|
|
export function delToken() {
|
|
sessionStorage.removeItem(SESSIONSTORAGE_TOKEN_KEY)
|
|
}
|