async create(data){
    const sessionid = SessionModel.newSessionId();
    const token = SessionModel.newToken(sessionid);
    if (await this.cache.setex(SessionModel.sessionKey(sessionid), data, JWT_TTL)) {
      return {token, sessionid};
    }
    return false;
  }
/**
   * Model Method - Create new session and token
   * @param  {Object}    data User data
   * @return {Object} token and session id
   */
Model Method - Create new session and token
@param  {Object}    data User data
@return {Object} token and session id
Model Method - Create new session and token @param { Object } data User data @return { Object } token and session id
async create(data){
    const sessionid = SessionModel.newSessionId();
    const token = SessionModel.newToken(sessionid);
    if (await this.cache.setex(SessionModel.sessionKey(sessionid), data, JWT_TTL)) {
      return {token, sessionid};
    }
    return false;
  }
async create ( data ) { const sessionid = SessionModel . newSessionId ( ) ; const token = SessionModel . newToken ( sessionid ) ; if ( await this . cache . setex ( SessionModel . sessionKey ( sessionid ) , data , JWT_TTL ) ) { return { token , sessionid } ; } return false ; }
Model Method - Create new session and token
 @param  {Object}    data User data
 @return {Object} token and session id
Model Method - Create new session and token @param { Object } data User data @return { Object } token and session id