Skip to main content

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. The AzeooUser instance provides profile and user-related APIs (getProfile, update, etc.) as implemented in the SDK. See the Flutter SDK source or API reference for the current method list.

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(userId, token);
// ... use SDK ...
await AzeooSDK.disconnect();