"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = require("react");
var _AuthProvider = require("../providers/AuthProvider");
const useAuth = () => {
  const {
    login,
    logout,
    client,
    isConnecting,
    isConnected,
    error,
    sessionState,
    apiRegion,
    isGlobalBan
  } = (0, _react.useContext)(_AuthProvider.AuthContext);
  return {
    error,
    login,
    client,
    logout,
    isConnecting,
    isConnected,
    sessionState,
    apiRegion,
    isGlobalBan
  };
};
var _default = exports.default = useAuth;
//# sourceMappingURL=useAuth.js.map