View on GitHub

optical_graph_recognition_mobApp

Mobile application for optical graph recognition

app / com.pzpg.ogr.api.request / RequestServer / refreshToken

refreshToken

suspend fun refreshToken(rToken: String): JSONObject

Suspend method to refresh token method to refresh the access token “jwtToken” when the time of the token has expired.

Parameters

rToken - refresh token which has string type

Exceptions

BadRequestException -

TimeOutException -

RequestServerException -

Return JSONObject which has three keys “mail”, “jwtToken” and “refreshToken” this three keys have string value

Author Władysław Jakołcewicz