Header and login
This commit is contained in:
12
ui/src/state/auth.ts
Normal file
12
ui/src/state/auth.ts
Normal 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
|
||||
});
|
||||
Reference in New Issue
Block a user