UNPKG

@gateway.fm/gtw-dvf-client-js

Version:

DVF client js lib with gateway.fm rpc endpoints

12 lines (9 loc) 235 B
const DVFError = require('../dvf/DVFError') module.exports = (dvf, token) => { if (!token) { throw new DVFError('ERR_TOKEN_MISSING') } if (!dvf.token.getTokenInfo(token)) { throw new DVFError('ERR_INVALID_TOKEN') } }