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
chore: drop legacy pubky auth once ring sign-up uses grants #205
The next major Pubky SDK drops legacy cookie auth (Slack), and bitkit-core still exposes it through its pubky module. Both apps still call two of those exports on one path: Pubky Ring sign-up that also authorizes an app (pubkyring://signup?hs&relay&secret&caps). That path blocks removing the module.
Where it's called (master, 11 Nov)
Android: ringAuthorizationUrl (PubkyAuthRequest.kt:317) builds a legacy pubkyauth:///?relay&secret&caps URL, and PubkyService.approveRingAuth approves it through bitkit-core approvePubkyAuth. PubkyService.kt:132 imports bitkit-core parsePubkyAuthUrl.
iOS: ringAuthorizationUrl (PubkyAuthRequest.swift:359) does the same, and BitkitCore.parsePubkyAuthUrl (:305) and PubkyService.swift:112 (approvePubkyAuth) use bitkit-core.
Why Paykit can't take it over
Paykit's PubkySessionBootstrap.approveAuth (paykit-ffi/src/session.rs:870) accepts only grant URLs whose client ID matches the app. parse_pubky_auth_url refuses legacy sign-in and sign-up links (paykit-sdk/src/pubky_session.rs:954-993). This holds for the Paykit builds the apps pin (0.1.1-rc6 on iOS, 0.1.1-rc7 on Android) and paykit-rs master 1fdbedd2, so swapping the calls would break Ring sign-up.
What unblocks it
Pubky Ring already accepts grant links (signin_grant / signup_grant, input formats). Once the apps that request authorization through Ring send signup_grant instead of the legacy relay/secret/caps link:
Drop the legacy Ring sign-up path from both apps. Plain sign-up and signup_grant already go through Paykit.
Remove approvePubkyAuth, parsePubkyAuthUrl, PubkyAuthDetails and the rest of the pubky module here, moving fetch_public_file_if_any into pubky_swaps first.
The unused pubky exports are being removed separately (Slack thread).
Reopening with a narrower scope. Requesting legacy auth goes away, but signers keep approving legacy requests, so older apps keep working with new versions of the homeserver, Pubky Ring and Bitkit.
#217 removed both sides. Its removal of the unused requester-side exports (startPubkyAuth, completePubkyAuth, profile, session and file helpers, pubky-app-specs) fits that goal and stays. Its removal of the signer path (parsePubkyAuthUrl, approvePubkyAuth, PubkyAuthDetails, PubkyAuthKind, PubkyError) does not: Bitkit approves legacy pubkyauth://signup?relay&secret&caps requests through it. A follow-up PR restores those exports before the next bitkit-core release. The app PRs that removed the legacy sign-up path (synonymdev/bitkit-ios#1332, synonymdev/bitkit-android#1917) are back in draft.
Activity
ovitrif commentedon Nov 11, 2026
@pwltr assigning this to you.
pwltr commentedon Nov 23, 2026
Reopening with a narrower scope. Requesting legacy auth goes away, but signers keep approving legacy requests, so older apps keep working with new versions of the homeserver, Pubky Ring and Bitkit.
#217 removed both sides. Its removal of the unused requester-side exports (
startPubkyAuth,completePubkyAuth, profile, session and file helpers,pubky-app-specs) fits that goal and stays. Its removal of the signer path (parsePubkyAuthUrl,approvePubkyAuth,PubkyAuthDetails,PubkyAuthKind,PubkyError) does not: Bitkit approves legacypubkyauth://signup?relay&secret&capsrequests through it. A follow-up PR restores those exports before the next bitkit-core release. The app PRs that removed the legacy sign-up path (synonymdev/bitkit-ios#1332, synonymdev/bitkit-android#1917) are back in draft.