We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cb2014 commit bafe172Copy full SHA for bafe172
docs/user-guide/authentication/user-management.md
@@ -182,8 +182,10 @@ Retrieving the current user's profile is a fundamental operation that should be
182
@router.get("/user/me/", response_model=UserRead)
183
async def read_users_me(current_user: dict = Depends(get_current_user)) -> dict:
184
return current_user
185
+```
186
+# Frontend usage`
187
-# Frontend usage
188
+```javascript
189
async function getCurrentUser() {
190
const token = localStorage.getItem('access_token');
191
const response = await fetch('/api/v1/user/me/', {
0 commit comments