diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/AuthAPI.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/AuthAPI.kt index 3524f3eb701527b0b52f635234b6671742e71cbe..e11b46d2e3554aa78786fd3e8abb2043b6d81a18 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/AuthAPI.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/AuthAPI.kt @@ -24,6 +24,8 @@ import org.matrix.android.sdk.internal.auth.data.PasswordLoginParams import org.matrix.android.sdk.internal.auth.data.TokenLoginParams import org.matrix.android.sdk.internal.auth.data.WebClientConfig import org.matrix.android.sdk.internal.auth.login.LoginFlowParams +import org.matrix.android.sdk.internal.auth.login.RefreshTokenParams +import org.matrix.android.sdk.internal.auth.login.RefreshedTokenInfo import org.matrix.android.sdk.internal.auth.login.ResetPasswordMailConfirmed import org.matrix.android.sdk.internal.auth.registration.AddThreePidRegistrationParams import org.matrix.android.sdk.internal.auth.registration.AddThreePidRegistrationResponse @@ -154,4 +156,8 @@ internal interface AuthAPI { //Added for Circles @POST(NetworkConstants.URI_API_PREFIX_PATH_R0 + "login") suspend fun login(@Body loginFlowParams: LoginFlowParams): Credentials + + //Added for Circles + @POST(NetworkConstants.URI_API_PREFIX_PATH_V3 + "refresh") + suspend fun refreshToken(@Body refreshTokenParams: RefreshTokenParams): RefreshedTokenInfo } \ No newline at end of file