diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/token.ts | 17 |
1 files changed, 17 insertions, 0 deletions
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 |