export default class Token { get() { return sessionStorage.getItem("token"); } set(token: string) { sessionStorage.setItem("token", token); } getRefresh() { sessionStorage.getItem("refresh"); } setRefresh(refresh_token: string) { sessionStorage.setItem("refresh", refresh_token); } present() { return sessionStorage.getItem("token") != null; } logout() { sessionStorage.removeItem("token"); sessionStorage.removeItem("refresh"); } }