fix: third-party login is broken#39532
Conversation
🦋 Changeset detectedLatest commit: f57dc5a The changes in this PR will be included in the next version bump. This PR includes changesets to release 41 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
4 issues found across 10 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/meteor/lib/utils/isPlainObject.ts">
<violation number="1" location="apps/meteor/lib/utils/isPlainObject.ts:1">
P2: The new type predicate is stronger than the runtime check and can incorrectly narrow non-plain objects to `Record<string | symbol, unknown>`.</violation>
</file>
<file name="apps/meteor/app/api/server/helpers/parseJsonQuery.ts">
<violation number="1" location="apps/meteor/app/api/server/helpers/parseJsonQuery.ts:31">
P2: Defaulting `queryFields`/`queryOperations` to empty arrays changes validation behavior and bypasses existing fallbacks, which can incorrectly reject queries.</violation>
</file>
<file name="apps/meteor/app/api/server/definition.ts">
<violation number="1" location="apps/meteor/app/api/server/definition.ts:181">
P2: `queryFields` is inferred as `never` for optional route options. Match the optional key in the conditional type so typed routes preserve the configured field list type.</violation>
</file>
<file name="apps/meteor/app/oauth2-server-config/server/oauth/oauth2-server.ts">
<violation number="1" location="apps/meteor/app/oauth2-server-config/server/oauth/oauth2-server.ts:80">
P2: Validate `queryParams.access_token` as a string instead of force-casting the whole object.
(Based on your team's feedback about avoiding unsafe type casts when values may be unexpected at runtime.) [FEEDBACK_USED]</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-7.12.6 #39532 +/- ##
=================================================
Coverage ? 66.62%
=================================================
Files ? 3409
Lines ? 116436
Branches ? 21462
=================================================
Hits ? 77580
Misses ? 36145
Partials ? 2711
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Backport of #37707