feat: introduce login page
This commit is contained in:
7
packages/web/src/hooks/useAuthentication.ts
Normal file
7
packages/web/src/hooks/useAuthentication.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { getItem } from 'helpers/storage';
|
||||
|
||||
export default function useAuthentication(): boolean {
|
||||
const token = getItem('token');
|
||||
|
||||
return Boolean(token);
|
||||
}
|
Reference in New Issue
Block a user