User and disconnect
After AzeooSDK.connect, you can access AzeooSDK.user for user operations and AzeooSDK.disconnect for logout.
User (AzeooSDK.user)
Available after connect. AzeooSDK.user returns the current user session object.
Use it for user/profile operations exposed by the current SDK (for example profile fetch/update and avatar upload, depending on the SDK version).
disconnect (logout)
await AzeooSDK.disconnect();
Clears the current user and session. Call this when the user logs out. The SDK stays initialized; call connect again to attach another user.
Example
await AzeooSDK.connect(
token: userToken,
gender: userGender,
height: Height(userHeightCm),
weight: Weight(userWeightKg),
);
// ... use SDK ...
await AzeooSDK.disconnect();