Skip to content

feat(auth): add unified Web3 authentication lifecycle#1613

Closed
AbhilashG12 wants to merge 1 commit into
pmxt-dev:mainfrom
AbhilashG12:feat/auth-lifecycle-clean
Closed

feat(auth): add unified Web3 authentication lifecycle#1613
AbhilashG12 wants to merge 1 commit into
pmxt-dev:mainfrom
AbhilashG12:feat/auth-lifecycle-clean

Conversation

@AbhilashG12

Copy link
Copy Markdown
Contributor

Resolves #1606.

Context

The core sidecar previously lacked a unified EIP-712 authentication flow. This resulted in broken sessions, middleware hangs during high traffic, and forced Web3 venues (like Probable) to rely on static, out-of-band API keys instead of programmatic wallet logins.

Architectural Changes

  1. Defined Unified Contract: Added standard Web3 session methods (getAuthNonce, loginWithSignature, logout) to BaseExchange and types.ts.
  2. Probable Implementation: Wired Probable's generated auth endpoints (postAuthLogin, etc.) into the new unified methods via callApi.
  3. SDK Propagation: Exposed the lifecycle methods in openapi.yaml and regenerated the Python and TypeScript SDKs.
  4. Test Coverage: Added isolated unit tests for the Probable auth mapping using mocked API calls.

Next Steps

Once this architectural pattern is reviewed and approved, I plan to implement the exact same interface for Limitless (Resolves #1589) in a follow-up PR to completely eliminate the remaining session-flow gaps.

- Add AuthNonceResponse, SessionCredentials types
- Add getAuthNonce, loginWithSignature, logout to BaseExchange
- Implement Probable auth with callApi()
- Add OpenAPI endpoints for auth

Fixes pmxt-dev#1606 pmxt-dev#1589
@AbhilashG12 AbhilashG12 deleted the feat/auth-lifecycle-clean branch July 10, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant