Initial conversion to react-basics.

This commit is contained in:
Mike Cao committed 2022-11-21 22:32:55 -08:00
1 parent c0a18e13fa
commit 2259ee8d76
10 files changed
+724 -609

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import { getItem, setItem, removeItem } from 'next-basics';
import { AUTH_TOKEN } from './constants';
export function getAuthToken() {
return getItem(AUTH_TOKEN);
}
export function setAuthToken(token) {
setItem(AUTH_TOKEN, token);
}
export function removeAuthToken() {
removeItem(AUTH_TOKEN);
}