Skip to content

Commit

Permalink
Update account_validity requests
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle committed Sep 1, 2023
1 parent fe47bc0 commit 887ef81
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package fr.gouv.tchap.android.sdk.internal.auth

import org.matrix.android.sdk.internal.network.NetworkConstants
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query
Expand All @@ -24,12 +23,12 @@ interface AccountValidityAPI {
/**
* Trigger sending a renewal email to the user that made the request.
*/
@POST(NetworkConstants.URI_API_PREFIX_PATH_UNSTABLE + "account_validity/send_mail")
@POST("_synapse/client/email_account_validity/send_mail")
suspend fun requestRenewalEmail()

/**
* Submit a token to renew the account validity.
*/
@GET(NetworkConstants.URI_API_PREFIX_PATH_UNSTABLE + "account_validity/renew")
@GET("_synapse/client/email_account_validity/renew")
suspend fun renewAccountValidity(@Query("token") token: String?)
}

0 comments on commit 887ef81

Please sign in to comment.