Something went wrong. Try again.
AtAuth
Something went wrong. Try again.
fix: separate OAuth redirect_uri from app callback in legacy auth flow
The /auth/init route was passing the downstream app's callback URL (e.g. https://md.bkb.cx/api/auth/callback) as the OAuth redirect_uri to @atproto/oauth-client. This is wrong -- the PDS must redirect back to ATAuth's own callback, not the downstream app. Now generateAuthUrl accepts a separate appRedirectUri parameter that is stored in the OAuth state for post-auth redirect, while the OAuth redirect_uri defaults to ATAuth's registered callback.
Author Bryan Brooks Date (Feb 22, 2026, 6:49 PM UTC) Commit
Copy SHA
Parent e1bd8856 e1bd88564cec2ee2fd814518a3ab4564b4b6d02c