Removed unused UserService dependency and simplified authCallback function by using destructured parameters. Added checks for user email and integrated invitation lookup and access validation for enhanced SSO sign-in/up flow.