Integrate extraFields for guest auth - #2833
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughGuest authentication now accepts optional ChangesGuest authentication extra fields
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant ClientAuth
participant ClientAuthAPI
participant GuestSignInRoute
participant Validator
participant UserStore
ClientAuth->>ClientAuthAPI: signInAsGuest with extraFields
ClientAuthAPI->>GuestSignInRoute: POST with extra-fields
GuestSignInRoute->>Validator: Validate extra-fields against $users schema
Validator->>UserStore: Create guest with extra-fields
UserStore-->>ClientAuth: Return guest identity
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@client/www/app/docs/users/page.md`:
- Around line 183-190: Update the authentication response documentation near the
Guest auth example to qualify the claim that all sign-in methods return a
created field, excluding signInAsGuest from that statement unless its
VerifyResponse is changed to include created: true. Preserve the existing guest
sign-in example and document its actual response shape.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 23ef3f1a-469d-4680-a7f0-f2c1294cf6b4
📒 Files selected for processing (9)
client/packages/core/__tests__/src/auth-extra-fields.e2e.test.tsclient/packages/core/src/Reactor.jsclient/packages/core/src/authAPI.tsclient/packages/core/src/index.tsclient/www/app/docs/auth/guest-auth/page.mdclient/www/app/docs/users/page.mdserver/src/instant/admin/routes.cljserver/src/instant/runtime/routes.cljserver/test/instant/runtime/routes_test.clj
|
View Vercel preview at instant-www-js-extra-fields-guest-auth-jsv.vercel.app. |
Got a request for integrating extraFields into guest auth and it was pretty straightforward!