Getting user by cookie programmatically #966
-
|
Hello 😃 I know that Fastapi-users/Fastapi has been designed as a Rest-api, but I am still wondering, if it is possible to get the currently logged in user programmatically via cookies? What I'm currently doing, which I don't like that much, is sending a python request to call my app to get to the result via: I also tried including the Can anybody help me please (or tell me that it is impossible and I should stop trying)? 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi @hannawagner! I don't really get what you're trying to do. The purpose of I'm not aware of the |
Beta Was this translation helpful? Give feedback.
Hi @hannawagner!
I don't really get what you're trying to do. The purpose of
current_useris exactly to get the current logged in user (via a cookie or whatever) in your own route.I'm not aware of the
security_checksdecorator. Could you give more details about it? Where does it come from?