You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[PB-7156]: fix(signup): send the invitation email token on guest register - #2361
/shared-guest and /workspace-guest read token from the URL and send it on registerPreCreatedUser.
Why
The token proves the guest owns the email. Drive server uses it to verify the email on register, so the guest sees what was shared with them right away.
Summary by CodeRabbit
New Features
Guest signup now carries the invitation email token from the signup link through registration when one is provided. Signup continues to work when no token is present.
No actionable comments were generated in the recent review.
Walkthrough
Guest signup views now pass the URL’s optional token query parameter through the signup callback to the pre-created-user registration request. Tests cover token forwarding and the absent-token case. The pinned @internxt/sdk version changes from 1.29.2 to 1.29.3.
Changes: Guest signup token forwarding
Layer / File(s)
Summary
Pass invitation tokens from signup views src/views/Signup/ShareGuestSignUpView.tsx, src/views/Signup/WorkspaceGuestSignUpView.tsx, src/views/Signup/utils/guestSignupOnSubmit.ts, src/views/Signup/utils/guestSignupOnSubmit.test.ts
Both guest signup views pass the URL token to guestSignupOnSubmit. The callback forwards the invitation token after the captcha value. Tests cover supplied and absent tokens.
Include the token in registration requests src/views/Signup/hooks/useSignup.ts, src/views/Signup/hooks/useSignup.test.ts, package.json
doRegisterPreCreatedUser accepts the optional invitation token and includes it as token in the SDK request. The SDK dependency is updated to 1.29.3, and a test checks that the invitation ID and token reach the registration call.
Merge Risk: Minimal · up to 9a46d · assessed changes only
Path filters excluded changed files. This rating applies only to the assessed changes.
Pre-merge checks: 4
Check name
Status
Explanation
Description check
The description states the change in the What section: the /shared-guest and /workspace-guest routes read the token from the URL and send it on registerPreCreatedUser. The Why section gives the reason…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Title check
The title names the change: the invitation email token is now sent on guest registration, which matches the changes to ShareGuestSignUpView, WorkspaceGuestSignUpView, useSignup, and guestSignupOnSubmi…
Full details: Description check
Explanation
The description states the change in the What section: the /shared-guest and /workspace-guest routes read the token from the URL and send it on registerPreCreatedUser. The Why section gives the reason: the token proves email ownership, and the Drive server uses it to verify the email during registration. The description omits the template sections Related Issues, Related Pull Requests, Checklist, Testing Process, and Additional Notes. The Testing Process section is the most important gap, since it does not say how the change was verified. The description is mostly complete on the core intent, so the check passes. The author should still fill in the missing template sections.
Full details: Title check
Explanation
The title names the change: the invitation email token is now sent on guest registration, which matches the changes to ShareGuestSignUpView, WorkspaceGuestSignUpView, useSignup, and guestSignupOnSubmit. It also cites the ticket ID and a conventional commit prefix. The title is specific and related to the main change. The changes to the SDK version bump and the tests are supporting details that the title does not need to cover.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
apsantiso
changed the title
[PB-7156]: feat(signup): send the invitation email token on guest register
[PB-7156]: fix(signup): send the invitation email token on guest register
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
/shared-guestand/workspace-guestreadtokenfrom the URL and send it onregisterPreCreatedUser.Why
The token proves the guest owns the email. Drive server uses it to verify the email on register, so the guest sees what was shared with them right away.
Summary by CodeRabbit