Add recoil state

This commit is contained in:
Benjamin Sherriff
2023-10-20 07:36:10 -04:00
parent a1090e2a0f
commit 11facd9bad
3 changed files with 31 additions and 15 deletions

12
ui/src/state/auth.ts Normal file
View File

@@ -0,0 +1,12 @@
import { User } from '@/api/auth.types';
import { atom } from 'recoil';
export const userState = atom({
key: 'userState',
default: undefined as User | undefined
});
export const isAuthenticatedState = atom({
key: 'isAuthenticatedState',
default: false
});