INNER CODE UNIT · JavaScript
DEFAULT_TIMEOUT
screwdriver-cd/screwdriver · plugins/auth/index.js:15
const DEFAULT_TIMEOUT = 2 * 60; // 2h in minutes
const ALGORITHM = 'RS256';
const JOI_BOOLEAN = joi.boolean().truthy('true').falsy('false');
/**
*
* @param {string} decoded
* @param {object} request
* @param {object} h
*/
const validate = async function validate() {
// The _decoded token signature is validated by jwt.verify so we can return true
return { isValid: true };
};
/**
*
* @param {user} user User data