This can totally be used a template if you choose so, but it has everything I need and what most people would need to get everything up and running with Vapor and JWT authentication for an API. Feel free to submit a PR if anyone has any better solutions for anything I have.
- User registration/authentication
- Authorization with the JWT token
- Current user fetching
The JWT token has a lifespan of 5 minutes and is fully signed.
If anyone has any questions, I hang out in the #authentication channel on the Vapor Slack group.
Visit the Vapor web framework's documentation for instructions on how to use this package.
Join the welcoming community of fellow Vapor developers in slack.
This package has been tested on macOS and Ubuntu.