Skip to content

Magic Link Auth #1773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
6450cf6
squash
jmsv Mar 27, 2025
ba2f833
fix lint
jmsv Mar 27, 2025
2fd3373
pass deletePeerStateOnClose through connectedPeers
jmsv Mar 28, 2025
fb34f50
cojson changeset
jmsv Mar 28, 2025
317f143
temporary agent is working!
jmsv Mar 31, 2025
454a973
nicer api for confirm login
jmsv Mar 31, 2025
851b1f9
fix consumer link and provider handler flow
jmsv Mar 31, 2025
54ce017
confirm step for consumer link and provider handler flow
jmsv Mar 31, 2025
d2008bf
example app
jmsv Mar 31, 2025
0b73ece
Merge branch 'main' of github.com:garden-co/jazz into jmsv/581/magic-…
jmsv Mar 31, 2025
15ab4e9
fix 0.12 merge on waitForCoValueCondition
jmsv Apr 1, 2025
8311901
bunch of example app niceness
jmsv Apr 1, 2025
e606bd4
init magic link docs
jmsv Apr 1, 2025
4601438
more example ui improvements
jmsv Apr 1, 2025
4d30d6d
switch from confirm button to confirmation code
jmsv Apr 6, 2025
a6941ba
Merge branch 'main' of github.com:garden-co/jazz into jmsv/581/magic-…
jmsv Apr 6, 2025
e0c65e2
move flow logic to jazz-tools
jmsv Apr 9, 2025
6ba97e0
unified hooks for creating and handling magic link auth
jmsv Apr 10, 2025
133696f
Merge branch 'main' of github.com:garden-co/jazz into jmsv/581/magic-…
jmsv Apr 10, 2025
99ad494
fix lock
jmsv Apr 10, 2025
9a08df4
magic link auth cancellable
jmsv Apr 14, 2025
a09ef59
add magic-link to docNavigationItems
jmsv Apr 14, 2025
60ccdd0
url as param on handleFlow
jmsv Apr 14, 2025
0499f81
Merge branch 'main' of github.com:garden-co/jazz into jmsv/581/magic-…
jmsv Apr 14, 2025
c9155b3
test jazz-tools flows
jmsv Apr 15, 2025
3995905
Merge branch 'main' of github.com:garden-co/jazz into jmsv/581/magic-…
jmsv Apr 15, 2025
f439b3a
fix: use a unique identifier for the magicLink peer
gdorsi Apr 15, 2025
6a80bea
tidy up imports
jmsv Apr 16, 2025
135d239
better url ref handling
jmsv Apr 16, 2025
0082417
checkValidUrl for handlers
jmsv Apr 16, 2025
9576efe
jazz-react-core hooks tests
jmsv Apr 16, 2025
e0ce0db
lil test tweak: "invalid-link-gets-ignored"
jmsv Apr 16, 2025
03bb9df
Merge branch 'main' of github.com:garden-co/jazz into jmsv/581/magic-…
jmsv Apr 16, 2025
55e3277
format
jmsv Apr 16, 2025
b131d04
use new jazz colour
jmsv Apr 17, 2025
892ca12
options docstrings
jmsv Apr 17, 2025
b5acd2a
example tweaks
jmsv Apr 17, 2025
8096f11
docs
jmsv Apr 17, 2025
8aab2c5
rename provider to source and consumer to target
jmsv Apr 22, 2025
3f500fc
format
jmsv Apr 22, 2025
030ac42
example tweaks
jmsv Apr 22, 2025
1c45372
docs docs docs
jmsv Apr 23, 2025
54870d0
Merge branch 'main' of github.com:garden-co/jazz into jmsv/581/magic-…
jmsv Apr 23, 2025
454a3e5
add warning if magic link doesn't include hash
jmsv Apr 23, 2025
be28248
switch todo example to passkey + magic link auth
jmsv Apr 24, 2025
b1d102a
Merge branch 'main' of github.com:garden-co/jazz into jmsv/581/magic-…
jmsv Apr 24, 2025
16d04cd
switch if returns on magic link examples to switch/case
jmsv Apr 25, 2025
502ddb4
simplify docs with example links
jmsv Apr 25, 2025
566eecb
examples
jmsv Apr 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/beige-experts-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cojson": patch
---

Pass deletePeerStateOnClose through connectedPeers
28 changes: 28 additions & 0 deletions examples/magic-link/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local
/test-results/
/playwright-report/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

playwright-report
319 changes: 319 additions & 0 deletions examples/magic-link/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,319 @@
# jazz-tailwind-demo-auth-starter

## 0.0.58

### Patch Changes

- jazz-react@0.11.5
- jazz-tools@0.11.5

## 0.0.57

### Patch Changes

- Updated dependencies [57a3dbe]
- Updated dependencies [a717754]
- Updated dependencies [a91f343]
- jazz-tools@0.11.4
- jazz-react@0.11.4

## 0.0.56

### Patch Changes

- jazz-react@0.11.3
- jazz-tools@0.11.3

## 0.0.55

### Patch Changes

- Updated dependencies [6892dc6]
- jazz-tools@0.11.2
- jazz-react@0.11.2

## 0.0.54

### Patch Changes

- jazz-react@0.11.1

## 0.0.53

### Patch Changes

- Updated dependencies [6a96d8b]
- Updated dependencies [a35249a]
- Updated dependencies [b9d194a]
- Updated dependencies [a4713df]
- Updated dependencies [34cbdc3]
- Updated dependencies [f039e8f]
- Updated dependencies [e22de9f]
- jazz-tools@0.11.0
- jazz-react@0.11.0

## 0.0.52

### Patch Changes

- Updated dependencies [2f99de0]
- jazz-tools@0.10.15
- jazz-react@0.10.15

## 0.0.51

### Patch Changes

- Updated dependencies [75211e3]
- jazz-tools@0.10.14
- jazz-react@0.10.14

## 0.0.50

### Patch Changes

- Updated dependencies [07feedd]
- jazz-tools@0.10.13
- jazz-react@0.10.13

## 0.0.49

### Patch Changes

- Updated dependencies [4612e05]
- jazz-tools@0.10.12
- jazz-react@0.10.12

## 0.0.48

### Patch Changes

- jazz-react@0.10.9

## 0.0.47

### Patch Changes

- Updated dependencies [2fb6428]
- jazz-tools@0.10.8
- jazz-react@0.10.8

## 0.0.46

### Patch Changes

- Updated dependencies [1136d9b]
- Updated dependencies [0eed228]
- jazz-react@0.10.7
- jazz-tools@0.10.7

## 0.0.45

### Patch Changes

- Updated dependencies [1d71ca1]
- Updated dependencies [ada802b]
- jazz-react@0.10.6
- jazz-tools@0.10.6

## 0.0.44

### Patch Changes

- Updated dependencies [59ff77e]
- jazz-tools@0.10.5
- jazz-react@0.10.5

## 0.0.43

### Patch Changes

- jazz-react@0.10.4
- jazz-tools@0.10.4

## 0.0.42

### Patch Changes

- Updated dependencies [d8582fc]
- jazz-tools@0.10.3
- jazz-react@0.10.3

## 0.0.41

### Patch Changes

- jazz-react@0.10.2
- jazz-tools@0.10.2

## 0.0.40

### Patch Changes

- Updated dependencies [5a63cba]
- jazz-tools@0.10.1
- jazz-react@0.10.1

## 0.0.39

### Patch Changes

- Updated dependencies [498954f]
- Updated dependencies [d42c2aa]
- Updated dependencies [dd03464]
- Updated dependencies [b426342]
- jazz-react@0.10.0
- jazz-tools@0.10.0

## 0.0.38

### Patch Changes

- jazz-react@0.9.23
- jazz-tools@0.9.23

## 0.0.37

### Patch Changes

- jazz-react@0.9.22

## 0.0.36

### Patch Changes

- Updated dependencies [1be017d]
- jazz-tools@0.9.21
- jazz-react@0.9.21

## 0.0.35

### Patch Changes

- Updated dependencies [b01cc1f]
- jazz-tools@0.9.20
- jazz-react@0.9.20

## 0.0.34

### Patch Changes

- jazz-react@0.9.19
- jazz-tools@0.9.19

## 0.0.33

### Patch Changes

- jazz-react@0.9.18
- jazz-tools@0.9.18

## 0.0.32

### Patch Changes

- Updated dependencies [c2ca1fe]
- Updated dependencies [1227047]
- jazz-tools@0.9.17
- jazz-react@0.9.17

## 0.0.31

### Patch Changes

- Updated dependencies [24b3b6a]
- jazz-tools@0.9.16
- jazz-react@0.9.16

## 0.0.30

### Patch Changes

- Updated dependencies [7491711]
- jazz-tools@0.9.15
- jazz-react@0.9.15

## 0.0.29

### Patch Changes

- Updated dependencies [3df93cc]
- jazz-tools@0.9.14
- jazz-react@0.9.14

## 0.0.28

### Patch Changes

- jazz-react@0.9.13
- jazz-tools@0.9.13

## 0.0.27

### Patch Changes

- jazz-react@0.9.12
- jazz-tools@0.9.12

## 0.0.26

### Patch Changes

- jazz-react@0.9.11
- jazz-tools@0.9.11

## 0.0.25

### Patch Changes

- Updated dependencies [5e83864]
- jazz-react@0.9.10
- jazz-tools@0.9.10

## 0.0.24

### Patch Changes

- Updated dependencies [8eb9247]
- jazz-tools@0.9.9
- jazz-react@0.9.9

## 0.0.23

### Patch Changes

- Updated dependencies [d1d773b]
- jazz-tools@0.9.8
- jazz-react@0.9.8

## 0.0.22

### Patch Changes

- jazz-react@0.9.4

## 0.0.21

### Patch Changes

- Updated dependencies [1b71969]
- jazz-react@0.9.1
- jazz-tools@0.9.1

## 0.0.20

### Patch Changes

- Updated dependencies [956a4d1]
- Updated dependencies [8eda792]
- jazz-react@0.9.0
- jazz-tools@0.9.0

## 0.0.19

### Patch Changes

- Updated dependencies [dc62b95]
- Updated dependencies [1de26f8]
- jazz-tools@0.8.51
- jazz-react@0.8.51
Loading