Integrations
Middleware
Learn how to use middleware in your application to handle requests and responses.
Authula provides middleware via plugins.
Examples of plugins with middleware and what it does:
- Session Plugin Middleware: checks if the user is authenticated by validating the session cookie.
- Bearer Plugin Middleware: checks if the user is authenticated by validating bearer tokens in a header, typically
Authorizationheader. This is dependent on the JWT Plugin being in use. - CSRF: protects state-changing (POST, PUT, PATCH, DELETE) endpoints with CSRF tokens.
