Identify all logic related to user authentication, such as token management, login/logout functions, and user state initialization, currently residing directly within src/App.tsx. Move this logic into a new dedicated service file, src/services/authService.ts. Update src/App.tsx and any other relevant components to consume the authentication functionality from this new service.
Identify all logic related to user authentication, such as token management, login/logout functions, and user state initialization, currently residing directly within src/App.tsx. Move this logic into a new dedicated service file, src/services/authService.ts. Update src/App.tsx and any other relevant components to consume the authentication functionality from this new service.