Skip to content

Cross-Device Account Transfer (formerly Magic Link Auth)#1773

Draft
jmsv wants to merge 63 commits into
mainfrom
jmsv/581/magic-link-auth
Draft

Cross-Device Account Transfer (formerly Magic Link Auth)#1773
jmsv wants to merge 63 commits into
mainfrom
jmsv/581/magic-link-auth

Conversation

@jmsv
Copy link
Copy Markdown
Contributor

@jmsv jmsv commented Mar 31, 2025

  • Logged-in device can show a QR code to log in a not-logged-in device, and
  • Not-logged-in device can show a QR code to get logged in by a logged-in device

closes #581
closes #1662

TODO:

  • Docstrings on MagicLinkAuth functions
  • Changeset for jazz-tools, jazz-react-core and jazz-react
  • Tests
  • Documentation

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-demo ❌ Failed (Inspect) May 23, 2025 9:17pm
file-upload-demo ❌ Failed (Inspect) May 23, 2025 9:17pm
form-demo ❌ Failed (Inspect) May 23, 2025 9:17pm
gcmp-homepage ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2025 9:17pm
image-upload-demo ❌ Failed (Inspect) May 23, 2025 9:17pm
jazz-chat ❌ Failed (Inspect) May 23, 2025 9:17pm
jazz-chat-1 ❌ Failed (Inspect) May 23, 2025 9:17pm
jazz-chat-2 ❌ Failed (Inspect) May 23, 2025 9:17pm
jazz-homepage ❌ Failed (Inspect) May 23, 2025 9:17pm
jazz-inspector ❌ Failed (Inspect) May 23, 2025 9:17pm
jazz-multi-cursors ❌ Failed (Inspect) May 23, 2025 9:17pm
jazz-organization ❌ Failed (Inspect) May 23, 2025 9:17pm
jazz-paper-scissors ❌ Failed (Inspect) May 23, 2025 9:17pm
jazz-pets ❌ Failed (Inspect) May 23, 2025 9:17pm
jazz-richtext ❌ Failed (Inspect) May 23, 2025 9:17pm
jazz-todo ❌ Failed (Inspect) May 23, 2025 9:17pm
jazz-version-history ❌ Failed (Inspect) May 23, 2025 9:17pm
music-demo ❌ Failed (Inspect) May 23, 2025 9:17pm
passkey-demo ❌ Failed (Inspect) May 23, 2025 9:17pm
passphrase-auth-demo ❌ Failed (Inspect) May 23, 2025 9:17pm
passwords-demo ❌ Failed (Inspect) May 23, 2025 9:17pm
reactions-demo ❌ Failed (Inspect) May 23, 2025 9:17pm

const group = cojsonInternals.expectGroup(transferCore.getCurrentContent());
const inviteSecret = group.createInvite("writer");

return handlerUrl + `/${transfer.id}/${inviteSecret}`;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: how about throwing an error if the handlerUrl doesn't contain an hash?

Thinking about a way to enforce users to rely on the hash paths to reduce the expoure of the secrets

@aeplay aeplay mentioned this pull request Apr 29, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: In Progress
Status: No status

Development

Successfully merging this pull request may close these issues.

PasskeyAuth: provide fallback API for moving between vendors SecretURLAuth: Use a temporary agent to consume secret

4 participants