Fix oidc button not showing on re-login, fix oidc re-login showing config already exists #1638 #1634

This commit is contained in:
advplyr
2025-08-16 17:55:00 -05:00
parent 7aebcd92c3
commit 4be1598eca
8 changed files with 46 additions and 24 deletions
@@ -407,6 +407,9 @@ class ApiHandler(var ctx:Context) {
if (checkAbsDatabaseNotifyListenersInitted()) {
val tokenJsObject = JSObject()
tokenJsObject.put("error", "Token refresh failed")
if (serverConnectionConfigId.isNotEmpty()) {
tokenJsObject.put("serverConnectionConfigId", serverConnectionConfigId)
}
absDatabaseNotifyListeners("onTokenRefreshFailure", tokenJsObject)
} else {
// Can happen if Webview is never run