gofiber / keyauth

🧬 Key Authentication for Fiber
https://github.com/gofiber/fiber
MIT License
76 stars 12 forks source link

Add Examples to Readme #87

Closed DavZim closed 1 year ago

DavZim commented 1 year ago

This PR updates the Readme by showing how to create a function to validate the keys, as well as how to apply the authentication to certain routes only.

I am not sure if the code can be shortened or made more elegant but it works for now...

DavZim commented 1 year ago

Note this closes #86