Skip to content

Glossary: Web App Security and Authentication

onRequest hook

Also written: hook

A Fastify hook that runs before every route. kc-shop's fills request.user from the sid cookie and also checks the Origin header.

Where the book teaches it

Related terms

decorateRequest