Users without a password_hash (Google OAuth / magic-link accounts) could obtain a JWT by simply posting their email to /auth/token. Add an else clause that rejects such requests with 401, directing them to their configured auth provider. Update and extend tests accordingly. |
||
|---|---|---|
| .. | ||
| providers | ||
| __init__.py | ||
| dependencies.py | ||
| jwt.py | ||
| router.py | ||