isRevoked (req, payload, done) {
    // here, we can't use this, we need to use req to retrieve the session service via yggdrasil
    return req.yggdrasil.sessionsService.isRevokedPromise(payload)
      .then(() => {
        done(null, false);
        return false;
      })
      .catch(() => {
        done(null, true);
        return true;
      });
  }
/**
   * Middleware for express-jwt which check if the given payload (decoded JWT) is revoked or not
   * Used by ExpressJWT for REST routes
   * @param req the request from express
   * @param payload, the given payload to check
   * @param done - callback called when the check is done : last parameter is true when payload is revoked, false otherwise
   */
Middleware for express-jwt which check if the given payload (decoded JWT) is revoked or not
Used by ExpressJWT for REST routes
@param req the request from express
@param payload, the given payload to check
@param done - callback called when the check is done : last parameter is true when payload is revoked, false otherwise
Middleware for express - jwt which check if the given payload ( decoded JWT ) is revoked or not Used by ExpressJWT for REST routes @param req the request from express @param payload the given payload to check @param done - callback called when the check is done : last parameter is true when payload is revoked false otherwise
isRevoked (req, payload, done) {
    return req.yggdrasil.sessionsService.isRevokedPromise(payload)
      .then(() => {
        done(null, false);
        return false;
      })
      .catch(() => {
        done(null, true);
        return true;
      });
  }
isRevoked ( req , payload , done ) { return req . yggdrasil . sessionsService . isRevokedPromise ( payload ) . then ( ( ) => { done ( null , false ) ; return false ; } ) . catch ( ( ) => { done ( null , true ) ; return true ; } ) ; }
Middleware for express-jwt which check if the given payload (decoded JWT) is revoked or not
 Used by ExpressJWT for REST routes
 @param req the request from express
 @param payload, the given payload to check
 @param done - callback called when the check is done : last parameter is true when payload is revoked, false otherwise
Middleware for express - jwt which check if the given payload ( decoded JWT ) is revoked or not Used by ExpressJWT for REST routes @param req the request from express @param payload the given payload to check @param done - callback called when the check is done : last parameter is true when payload is revoked false otherwise
// here, we can't use this, we need to use req to retrieve the session service via yggdrasil