Get user info

Refactor how user info is accessed based on the authentication method you're using.


Default behavior

By default, the project uses static mocked user data for development:

Before:
import { useMockedUser } from 'src/auth/hooks';
 
const { user } = useMockedUser();
Update to real auth context

To retrieve actual user info based on the selected authentication strategy, update your code like this:

After:
import { useAuthContext } from 'src/auth/hooks';
 
const { user } = useAuthContext();