WIP - Adding multi tenant

This commit is contained in:
2025-03-27 00:11:53 +01:00
parent ff78f9da54
commit 706b3dc275
5 changed files with 23 additions and 14 deletions

View File

@@ -109,6 +109,9 @@ fastapi_users = FastAPIUsers[User, uuid.UUID](
get_current_user = fastapi_users.current_user(active=True)
get_current_superuser = fastapi_users.current_user(active=True, superuser=True)
def get_current_user_and_firm(user=Depends(get_current_user)):
return user
def get_auth_router():
return fastapi_users.get_auth_router(auth_backend)