Authentication and tokens
Use these types when you configureuseAuth, read results from login or registration, or type the payload when your backend refreshes a partner token.
Reach for UseAuthParams when you build the argument object for the auth hook. Use LoginResponse and RegistrationResponse when you handle success or error shapes from those flows. Use UpdatePartnerTokenResponse when you update tokens and want the SDK response typed end to end.
UseAuthParams
Parameters for the
useAuth hookLoginResponse
Response shape from the login flow
RegistrationResponse
Response shape from registration
UpdatePartnerTokenResponse
Response from partner token updates
Ambient session
Use these types when you pass patient, provider, and visit details into a session, calluseAmbientSession, or branch UI on session status. SessionContext is the object that carries who and what visit the session is for.
UseAmbientSessionParams and UseAmbientSessionReturn match what you pass in and what the hook gives back (handlers, state, and helpers). AmbientSessionStatus is what you use when you need a narrow set of status values or related typing for recording, pausing, resuming, or finishing work.
SessionContext
Patient, provider, and visit context for sessions
UseAmbientSessionParams
Parameters for
useAmbientSessionUseAmbientSessionReturn
Return type of
useAmbientSessionAmbientSessionStatus
Session status values and related typing
Next steps
Refer to Provider for more information on how to wrap your application with thePlatformClient and PlatformClientProvider before using hooks.