Custodia is a simple TypeScript library intended to help developers implement an OAuth2 Identity Provider, compliant with RFC 6749. This library supports the Authorization Code Grant flow.
By using handler functions, Custodia can implement with most databases— you, as the developer, define how Custodia interacts with your chosen database.
This codebase is not yet suitable for use in other projects. As I make progress with this project, I hope to add other grant type flows and improved documentation.