UNPKG

uzen

Version:

General-purpose GraphQL subscription server library

15 lines (14 loc) 387 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isAuth = exports.TOPICS = void 0; const TOPICS = { 'ntCrud': (topic) => `CRUD_${topic}`, }; exports.TOPICS = TOPICS; const isAuth = (authorization) => { if (!authorization) { throw new Error('Unauthorized: Token not found!'); } return authorization; }; exports.isAuth = isAuth;