I want to build an oauth2 server. Is there any example out there to give a start?
I do not think there is already an 0auth2 implementation along with AdonisJs … you will have to implement it by yourself …
Here seems to be something you can take a look at: https://github.com/p-chan/adonis-oauth2-server
Seems to be abandonware tho, but perhaps it still works or you can learn something from it.
Creating full implementation of OAuth2 server takes quite some time. You can also take a look at Auth0 or anything similar, might help a little bit with your current project.
But if you make OAuth2 (or module / plugin) server with Adonis please let me know too