LonelyVikingMichael / litestar-users

Authentication and user management for the Litestar framework
https://lonelyvikingmichael.github.io/litestar-users/
MIT License
47 stars 12 forks source link

Enhancement: use Starlite application `state` to store configs #38

Closed LonelyVikingMichael closed 1 year ago

LonelyVikingMichael commented 1 year ago

Currently we're using factory patterns to inject configurations into route handlers and service layers. This can be cleaned up somewhat by storing the StarliteUsersConfig object in app.state and using dependency injection to retrieve values.

LonelyVikingMichael commented 1 year ago

This is no longer necessary since adhering to the plugin protocol.