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 (
verify_access_token,user_id); the wire format is unchanged. - Async-only, on tokio.
- A JWKS fetch failure is
Api { NetworkError, status: 0 }, andsafe_verify_access_tokenpropagates it; Node returnsnull. - The injected HTTP client is used for the JWKS fetch too.
- A default request timeout of 15 seconds.
- A malformed verification key fails at
build(). - Configuration mistakes are
DecaneError::Config. - No standalone cached
verify_access_token: build one client and reuse it. connect_with_tokentakesOption<&str>for the provider id;create_usertakes aCreateUserOptionsvalue.ApiErrorCode::Other(String)carries codes this version does not know by name.
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. User.linked_accounts keeps Privy’s shape.