import { useContext } from 'react';
import { AuthContext } from '../providers/AuthProvider';
const useAuth = () => {
  const {
    login,
    logout,
    client,
    isConnecting,
    isConnected,
    error,
    sessionState,
    apiRegion,
    isGlobalBan
  } = useContext(AuthContext);
  return {
    error,
    login,
    client,
    logout,
    isConnecting,
    isConnected,
    sessionState,
    apiRegion,
    isGlobalBan
  };
};
export default useAuth;
//# sourceMappingURL=useAuth.js.map