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
Commit 5396ee2
Browse filesBrowse the repository at this point in the historyBrowse files
feat(remote-connect): carry the relay service version as a query parameter
The official endpoint moves from a versioned path to a versioned query:
`https://remote.openbitfun.com/relay?v=1.0.9`. One proxy location now serves
every build, and the bare origin is the account controller, so a release no
longer needs its own location and an invitation can be opened without knowing
a version path.
`/v/1.0.2/` stays live on the same process and database. Both paths are one
deployment: a stored token, master key, or device registration from either
alias keeps working, and neither is reported as retired. Compatibility is
enforced end to end:
- product-domains owns the endpoint helpers: base extraction (version, query,
fragment removed), version reading, live-alias deployment comparison, and
page URLs that keep `?v=` before the fragment.
- URL validation accepts exactly one `v=<version>` parameter and rejects every
other query, so the query can never carry per-request data. Rust, Kotlin, and
ArkTS validators follow the same rule.
- Path joins (`join_relay_url`, page URLs, socket paths, RPC payload endpoints)
always use the base, never the versioned string.
- Pairing links keep the version before the fragment, and both mobile clients
accept invitations from either live alias.
Published Pages are served from a separate browser origin in deployment: a Page
document executes user-authored JavaScript and must not share storage with the
controller that holds the device key. The deploy template documents the query
endpoint, the bare-origin controller, and the `/p/` redirect.
Verified with `cargo test -p openbitfun-product-domains`,
`cargo test -p openbitfun-services-integrations --features remote-connect`,
mobile-web `test:account-login`, and the web-ui relay endpoint tests.
Copy file name to clipboardExpand all lines: src/apps/mobile/shared/core-feature/src/commonMain/kotlin/com/openbitfun/mobile/core/feature/account/AccountDeviceLink.kt
Copy file name to clipboardExpand all lines: src/apps/mobile/shared/core-feature/src/commonMain/kotlin/com/openbitfun/mobile/core/feature/account/AccountStore.kt
+20-8Lines changed: 20 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -254,20 +254,32 @@ public class AccountStore internal constructor(
254
254
)
255
255
return@launch
256
256
}
257
-
if (restored.relayUrl.trimEnd('/').startsWith("https://remote.openbitfun.com/v/") &&
0 commit comments