crumb
crumb copied to clipboard
CSRF crumb generation and validation for hapi
It's very common in other frameworks to do REST routes as such: ``` (request: Request, h: ResponseToolkit): symbol => { if (request.method === 'post' && request.url.searchParams.has('_method')) { const override =...
Hello, In the frame of one of my project, I had to modify the Crumb plugin to implement an `HMAC based token pattern` to be used in a stateless server....
#### Support plan * *is this issue currently blocking your project?* (yes/no):no * *is this issue affecting a production system?* (yes/no):yes #### Context * *node version*: 12+ * *module version*:...
#### Support plan * *is this issue currently blocking your project?* (yes): * *is this issue affecting a production system?* (no): #### Context * *node version*: 12.16.2 * *module version...
### Runtime node.js ### Runtime version 20 ### Module version 9.0.1 ### Last module version without issue _No response_ ### Used with hapi ### Any other relevant information From [the...
Return early if `request.route.settings.plugins.crumb` is falsy. Fixes #165