Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1e717f177f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
spec/openapi.yml
Outdated
| - ApiKeyAuth: [] | ||
| - Supabase1TokenAuth: [] | ||
| Supabase2TeamAuth: [] | ||
| - {} # support anonymous or failed auth tokens |
There was a problem hiding this comment.
No need for this, the API's auth middleware will return 403 without work
packages/api/internal/handlers/me.go
Outdated
| teamInfo, ok := a.safeGetTeamInfo(c) | ||
| if !ok { | ||
| a.sendAPIStoreError(c, http.StatusUnauthorized, "no credentials found") | ||
|
|
||
| return | ||
| } |
There was a problem hiding this comment.
We can panic on non-nil team info, the auth middleware should take care of this already.
…dpoint # Conflicts: # packages/api/internal/handlers/auth.go
Note
Medium Risk
Touches authentication-adjacent routing and exposes identity metadata; risk is mainly incorrect security config or unintended information disclosure if auth middleware/scopes are misapplied.
Overview
Adds a new authenticated
GET /meendpoint that returns basic token/team metadata (teamID,teamName) for the caller, including OpenAPI schema/route wiring and regenerated clients/server stubs, plus an integration test covering authorized and unauthorized access.Written by Cursor Bugbot for commit 5c099e3. This will update automatically on new commits. Configure here.