patrickpissurno / fastify-esso

The easiest authentication plugin for Fastify, with built-in support for single sign-on (SSO)
https://npm.im/fastify-esso
MIT License
52 stars 6 forks source link

Added ability to use custom decorator and custom token prefix #13

Closed hazeezet closed 2 years ago

hazeezet commented 2 years ago

useful if you want to register this package for different authentication.

patrickpissurno commented 2 years ago

Hi!

I appreciate your contributions to fastify-esso.

Based on the work you've done, I reimplemented those two features in a similar way (albeit the API is a little bit different), so they look and feel more similar to the rest of the codebase.

As always, I've also updated the test suite, to make sure code coverage is still 100%, and also updated both the documentation and the TypeScript definitions.

I'll be closing this PR as every feature has already been manually integrated into the plugin. Feel free to comment in case I missed something.

The new features have been published and are now available on npm starting with version v1.3.0.

Thanks!

hazeezet commented 2 years ago

Alright, excellent work.