DecaneDocs
ReferenceComing from Node
Reference

Differences from decane-node

The wire format and every code, message and check are those of decane-node 1.6.0. What differs:

  • snake_case names throughout (verify_access_token, user_id); the wire format is unchanged.
  • Sync DecaneClient and async AsyncDecaneClient.
  • A JWKS fetch failure is DecaneApiError with code NETWORK_ERROR, and safe_verify_access_token lets it through; Node returns null.
  • The injected http_client is used for the JWKS fetch too.
  • A default request timeout of 15 seconds.
  • A malformed verification_key fails at construction.
  • Configuration mistakes are DecaneConfigError; blank arguments are ValueError.
  • Results are frozen dataclasses; create_user takes create_wallet and metadata as keyword arguments.

Migrating from Privy

Decane’s uid is a UUID, not a did:privy:…. Rows keyed by a Privy id will not match; map legacy ids during a re-authentication window before cutting production over. The standalone verify_access_token and User.linked_accounts keep Privy’s shapes.