FastAPI-Users with fastapi-users-db-beanie seems to break when using the new Beanie release 1.18.
The Beanie dependency for this project is set as "beanie >=1.11.0,<2.0.0".
Any usage of (at least cookie-based) auth endpoints leads to:
File "/home/user/.cache/pypoetry/virtualenvs/project-3OfolOSU-py3.10/lib/python3.10/site-packages/fastapi_users/authentication/strategy/db/strategy.py", line 46, in write_token
return access_token.token
AttributeError: 'NoneType' object has no attribute 'token'
Describe the bug
FastAPI-Users with fastapi-users-db-beanie seems to break when using the new Beanie release 1.18.
The Beanie dependency for this project is set as
"beanie >=1.11.0,<2.0.0"
.Any usage of (at least cookie-based) auth endpoints leads to:
To Reproduce
Just use it with Beanie
1.18
.Expected behavior
Everything works as intended.
Configuration
3.10
0.95.1
10.4.0
1.1.4
1.18.0
<--1.17.x
worked just fine!