UNPKG

passport-fast-jwt

Version:

Passport authentication strategy for JSON Web Tokens using Fast-Jwt with support for EdDSA algorithm among others

15 lines (14 loc) 345 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isDefined = void 0; /** * Looks like array filter cannot infer the correct type * without this */ const isDefined = (value) => { if (value !== undefined && value !== null) { return true; } return false; }; exports.isDefined = isDefined;