Android SDK
User Account
Authorization Information

Authorization Information

Get the token and uid of the current user

val tokenInfo = GizSDKManager.getUserManager().getAuthorizeData()

Set token and uid

ℹ️

In some special cases, it may be necessary to manually set the token and uid. You can use the following interface for this purpose.

import com.gizwits.smart.sdk.GizSDKManager
import com.gizwits.smart.sdk.core.data.model.UserToken
 
GizSDKManager.getUserManager().updateAuthorizeData(
    UserToken(token = token, userId = uid, expiredAt = null)
)