Commit 0db4d364 authored by Alex Segers's avatar Alex Segers

[AFP-111] Add 'tokenStorage' util for storing access token in localStorage (@asegers)

parent fccab38d
const LOCAL_STORAGE_KEY = "TOKEN";
export const set = (token: string) => { localStorage.setItem(LOCAL_STORAGE_KEY, token); }
export const get = (): string => localStorage.getItem(LOCAL_STORAGE_KEY) || "";
export default { set, get }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment