Support password rotation
wzrdtales opened this issue · 1 comments
wzrdtales commented
This lib is curently missing the support of password rotation. Which can be simply archived by allowing the password param to be an object.
https://github.com/hapijs/hapi-auth-cookie/blob/master/lib/index.js#L24
See for reference
This would be the proper validation alternatives to be added:
Joi.object({
id: Joi.alternatives(Joi.number(), Joi.string()).required(),
secret: Joi.string().required()
}),
Joi.object({
id: Joi.alternatives(Joi.number(), Joi.string()).required(),
integrity: Joi.string().required(),
encryption: Joi.string().required()
})
lock commented
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.