Qiscus Chat SDK (core) v1.5.0
Changelog :
- Support ExpiredToken
for example :
- if you get error when call API qiscusCore with error code 403, please call api refreshToken
QiscusAccount account = QiscusCore.getQiscusAccount();
QiscusApi.getInstance().refreshToken(account.getEmail(), account.getRefreshToken())
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(QiscusCore::saveRefreshToken, throwable -> {
QiscusErrorLogger.print(throwable);
});