Skip to content

Commit

Permalink
fix(current-user): use correct backend endpoint (#1637)
Browse files Browse the repository at this point in the history
Co-authored-by: victoria <[email protected]>
  • Loading branch information
thiskevinwang and victoriaxyz authored Oct 21, 2024
1 parent 65015af commit c63591d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/references/nextjs/current-user.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The `currentUser` helper returns the [`Backend User`](/docs/references/backend/t
Under the hood, this helper:

- calls `fetch()`, so it is automatically deduped per request.
- uses the `GET /v1/users/me` endpoint.
- uses the [`GET /v1/users/{user_id}`](https://clerk.com/docs/reference/backend-api/tag/Users#operation/GetUser) endpoint.
- counts towards the [Backend API Request Rate Limit](/docs/backend-requests/resources/rate-limits#rate-limits).

```tsx {{ filename: 'app/page.tsx' }}
Expand Down

0 comments on commit c63591d

Please sign in to comment.