Update iOS ApiClient to handle token refresh

This commit is contained in:
advplyr
2025-07-05 16:46:37 -05:00
parent bc927d4c35
commit 5766c49f61
4 changed files with 393 additions and 22 deletions
@@ -404,6 +404,7 @@ class ApiHandler(var ctx:Context) {
errorObj.put("error", "Authentication failed - please login again")
callback(errorObj)
// TODO: Notify webview frontend
} catch (e: Exception) {
Log.e(tag, "handleRefreshFailure: Error during failure handling", e)
val errorObj = JSObject()