teamhide / fastapi-boilerplate

FastAPI boilerplate for real world production
986 stars 156 forks source link

How get currentUser #24

Closed r0otx closed 1 year ago

r0otx commented 1 year ago

I'm call CurrentUser class, and get null result, but I authorized in app. If print CurrentUser in AuthBackend, I'm see my ID and if call request.user.id I'm too see my id. How fix it?

r0otx commented 1 year ago

I'm get ID from request, my inattention let me down