Commit e5250ee
authored
feat: add multi-space session support to SessionConfig (#25)
* feat: add multi-space session support to SessionConfig
SessionConfig now accepts optional `additionalSpaces` so a single SIWE
signature can cover multiple spaces (e.g., primary + public). The
into_message() method generates ReCap capability URIs for all spaces,
enabling the SDK to operate on both default and public spaces without
requiring a second wallet interaction.
* feat: lazy delegation activation - skip missing spaces for multi-space sessions
Server now tolerates missing spaces during delegation processing instead
of failing with SpaceNotFound. For delegation-only transactions, spaces
that don't exist in the DB are skipped (no epoch/event_order created),
while the delegation record is still fully saved. Invocations continue
to fail explicitly with 404 for non-existent spaces.
The /delegate endpoint now returns JSON with activated/skipped space
lists, allowing clients to defer public space creation until needed
rather than eagerly creating it during signIn.1 parent b4dc4f8 commit e5250ee
5 files changed
Lines changed: 409 additions & 192 deletions
File tree
- .changeset
- src/routes
- tinycloud-core/src
- tinycloud-sdk-wasm/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
82 | 89 | | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
86 | 93 | | |
87 | | - | |
| 94 | + | |
88 | 95 | | |
89 | 96 | | |
90 | 97 | | |
| |||
105 | 112 | | |
106 | 113 | | |
107 | 114 | | |
108 | | - | |
109 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
110 | 132 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
115 | 146 | | |
116 | 147 | | |
117 | 148 | | |
| |||
0 commit comments