fastify / csrf-protection

A fastify csrf plugin.
Other
146 stars 18 forks source link

Updated example getToken function in README.md #117

Closed 58bits closed 1 year ago

58bits commented 1 year ago

Minor speed bump in the example getToken method shown in the README.

I believe there needs to be a return statement for the current example? I've also shown another using an arrow function, as well as changed the name of the example header to match one from the example list shown before.

Hope this helps.

Uzlopak commented 1 year ago

Yes you are right