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
DecaneClientand asyncAsyncDecaneClient. - A JWKS fetch failure is
DecaneApiErrorwith codeNETWORK_ERROR, andsafe_verify_access_tokenlets it through; Node returnsnull. - The injected
http_clientis used for the JWKS fetch too. - A default request timeout of 15 seconds.
- A malformed
verification_keyfails at construction. - Configuration mistakes are
DecaneConfigError; blank arguments areValueError. - Results are frozen dataclasses;
create_usertakescreate_walletandmetadataas 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.