UNPKG

@toruslabs/customauth

Version:

CustomAuth login with torus to get user private key

17 lines (14 loc) 377 B
import _defineProperty from '@babel/runtime/helpers/defineProperty'; class SentryHandler { constructor(sentry) { _defineProperty(this, "sentry", null); this.sentry = sentry; } startSpan(context, callback) { if (this.sentry) { return this.sentry.startSpan(context, callback); } return callback(null); } } export { SentryHandler as default };