"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.LINKING_ERROR = exports.ErrorCode = void 0;
exports.handleErrorCodes = handleErrorCodes;
var _reactNative = require("react-native");
const LINKING_ERROR = `The package 'react-native-authsignal' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
  ios: "- You have run 'pod install'\n",
  default: ''
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
exports.LINKING_ERROR = LINKING_ERROR;
let ErrorCode;
exports.ErrorCode = ErrorCode;
(function (ErrorCode) {
  ErrorCode["user_canceled"] = "user_canceled";
  ErrorCode["no_credential"] = "no_credential";
  ErrorCode["token_not_set"] = "token_not_set";
  ErrorCode["token_required"] = "token_required";
  ErrorCode["token_invalid"] = "token_invalid";
})(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
function handleErrorCodes(ex) {
  return {
    error: ex.message,
    errorCode: ex.code
  };
}
//# sourceMappingURL=error.js.map