From c93ea8a5b1b8e2ea4cf1865a3628ddaf92910e18 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Wed, 6 Apr 2022 12:01:08 +0530 Subject: [PATCH] error handling for multiple device login --- docs/index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index 4018660..3566d48 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2121,7 +2121,14 @@ render.userOrders(); proxy.secret.then(_ => null).catch(_ => null); showPage(window.location.hash); - }).catch(error => notify(error.data, 'error')) + }).catch(error => { + if (error.data === 'Invalid request signature! Re-login if this error occurs frequently') { + proxy.clear() + location.reload() + } + else + notify(error.data, 'error') + }) .finally(() => { hideProcess('login_button_wrapper') })