mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 07:03:25 +00:00
feat: add auth via google
This commit is contained in:
5
inertia/hooks/use_user.tsx
Normal file
5
inertia/hooks/use_user.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { usePage } from '@inertiajs/react';
|
||||
import type { InertiaPage } from '~/types/inertia';
|
||||
|
||||
const useUser = () => usePage<InertiaPage>().props.auth;
|
||||
export default useUser;
|
||||
Reference in New Issue
Block a user