> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# RefreshTokenCallback (interface)

[com.voximplant.android.sdk.core](/api-reference/androidsdk3/android/sdk/core/overview)

Interface that the application implements to receive the result of a token refresh.

**Methods**

* [onFailure](/api-reference/androidsdk3/android/sdk/core/refreshtokencallback#onfailure)
* [onSuccess](/api-reference/androidsdk3/android/sdk/core/refreshtokencallback#onsuccess)

## Methods

### onFailure

`fun onFailure(error: `[`LoginError`](/api-reference/androidsdk3/android/sdk/core/loginerror)`): Unit`

Reports token refresh failure.

**Parameters**

| Parameter | Type                                                                   | Requirement | Description    |
| --------- | ---------------------------------------------------------------------- | ----------- | -------------- |
| `error`   | [`LoginError`](/api-reference/androidsdk3/android/sdk/core/loginerror) |             | Failure reason |

**Returns:** Unit

### onSuccess

`fun onSuccess(authParams: `[`AuthParams`](/api-reference/androidsdk3/android/sdk/core/authparams)`): Unit`

Reports successful token refresh.

**Parameters**

| Parameter    | Type                                                                   | Requirement | Description                                |
| ------------ | ---------------------------------------------------------------------- | ----------- | ------------------------------------------ |
| `authParams` | [`AuthParams`](/api-reference/androidsdk3/android/sdk/core/authparams) |             | that can be used to login via access token |

**Returns:** Unit