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

First doc example raises ImportError: cannot import name 'LitestarUsers' from 'litestar_users' #71

Closed euri10 closed 3 months ago

euri10 commented 5 months ago

https://lonelyvikingmichael.github.io/litestar-users/usage/0-configuration/

I see rename LitestarUsers class to LitestarUsersPlugin so I changed it and get now:

    config=LitestarUsersConfig(
           ^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 27, in __init__
  File "/home/lotso/.cache/pypoetry/virtualenvs/ollama-liteproxy-wn7kqDdW-py3.11/lib/python3.11/site-packages/litestar_users/config.py", line 279, in __post_init__
    raise ImproperlyConfiguredException(
litestar.exceptions.http_exceptions.ImproperlyConfiguredException: 500: session_backend_config must be set when auth_backend is set to "session"

other examples in the examples folder work fine oob ;) will play with that for now