Open Towux opened 1 month ago
The easiest way to test the example is with the intrgrated FastAPI docs at http://127.0.0.1:8000
/login
Endpoint
/authenticated
Endpoint should return true
If you develop a application for this you have to handle this in code. You should provide the user with a Button opening the Discord URL. When the callback is called you should save the tokens on the client and provide them on every request in the Authorization header.
I dont understand how to work with "Depends" Just help, how to get user info using access token? Because "Example" code dont work, it writes "Unuuthenticated" error when i do isAuthenticated, get_user and get_guilds functions maybe fastapi dont save my user in cache...