From f86cd3d1b248436f911dc2e1c9e71910a5302108 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 4 May 2023 21:38:28 -0600 Subject: AƱade renderizado de errores MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/token.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/lib/token.ts (limited to 'src/lib') diff --git a/src/lib/token.ts b/src/lib/token.ts new file mode 100644 index 0000000..113e76d --- /dev/null +++ b/src/lib/token.ts @@ -0,0 +1,17 @@ +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); + } +} \ No newline at end of file -- cgit v1.2.3