fastify / csrf-protection

A fastify csrf plugin.
Other
151 stars 19 forks source link

Missing `userInfo` type in options for `generateCsrf` #150

Open likerRr opened 10 months ago

likerRr commented 10 months ago

Prerequisites

Issue

Not actually a bug, just a missing userInfo typing for generateCsrf decorator function. Now function parameters accept only fastifyCsrfProtection.CookieSerializeOptions, but userInfo should also be possible to pass

Uzlopak commented 10 months ago

I did not investigate now if this is a valid claim. But if you are willing to provide a PR with tests and typings, I can promise you that we can evaluate it and merge it in a timely manner.