src/infra/authentication/JWT.js
/**
   * Generates a token based on the given info.
   *
   * @param {Object} data
   * @param {String} key
   * @param {Integer} ttl
   * @returns {String}
   * @memberof JWT
   */
Generates a token based on the given info.
Generates a token based on the given info .
sign(data, key, ttl = 3600) {
    return jwt.sign(data, key, {
      expiresIn: ttl,
    });
  }
sign ( data , key , ttl = 3600 ) { return jwt . sign ( data , key , { expiresIn : ttl , } ) ; }
Generates a token based on the given info.
Generates a token based on the given info .