lucia-auth / lucia

Authentication, simple and clean
https://lucia-auth.com
MIT License
8.35k stars 448 forks source link

docs: using hono/csrf middleware #1553

Closed benjamine closed 2 months ago

benjamine commented 2 months ago

just a documentation update. updating hono guide to use the built-in hono/csrf middleware, see https://hono.dev/middleware/builtin/csrf

pilcrowOnPaper commented 2 months ago

Can you update this line

This can be easily done by comparing the Origin and Host header.

to something like

This can be done using the csrf() middleware provided by Hono.

benjamine commented 2 months ago

@pilcrowOnPaper good catch, just updated the text above

pilcrowOnPaper commented 2 months ago

Thanks!