Top "Hapijs" questions

Hapi is a rich Node.

How to destroy JWT Tokens on logout?

I am using jwt plugin and strategy in hapijs. I am able to create jwt token while login user and …

node.js jwt hapijs
Joi validation of array

trying to validate that an array has zero or more strings in one case and that it has zero or …

hapijs joi
How do Express and hapi compare to each other?

From web application design and development point of view, how do Express and Hapi compare to each other? For basic …

node.js express frameworks hapijs
Promise reject Possibly unhandled Error:

I have a function that does some operation using an array. I would like to reject it when the array …

javascript node.js promise catch-block hapijs
How to store routes in separate files when using Hapi?

All of the Hapi examples (and similar in Express) shows routes are defined in the starting file: var Hapi = require(…

node.js routes hapijs
Joi validation multiple conditions

I have the following schema: var testSchema = Joi.object().keys({ a: Joi.string(), b: Joi.string(), c: Joi.string().when(…

javascript hapijs joi
Nodejs Hapi - How to enable cross origin access control

I am working HapiJs Restful web service and trying to enable cors so any client even from different domain can …

javascript node.js hapijs
How to allow any other key in Joi

I have a simple requirement. I tried to search on the internet as well as documentation but failed. So here …

javascript hapijs joi
Joi validation return only one error message

I have a three field form made of a name field, email field and a textarea. I'm using Joi 4.7.0 version …

validation hapijs
hapi.js best way to handle errors

I'm creating my first node.js REST web service using hapi.js. I'm curious as to the best way to …

javascript node.js rest hapijs