fix: blank screen in admin dashboard on authentication problems (#3385)
* fix: dashboard logs out user when cookie expires or is unauthorized * fix: handles the 401 error thrown when trying to refresh tokens * chore: updated wrong logic when returning state in refresh token function * feat: introduced auth exchange to urql client to check for errors on each backend call * fix: prevent multiple window reloads --------- Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
This commit is contained in:
committed by
GitHub
parent
0188a8d7db
commit
b18fd90b64
@@ -22,7 +22,8 @@
|
||||
"@intlify/unplugin-vue-i18n": "^1.2.0",
|
||||
"@types/cors": "^2.8.13",
|
||||
"@types/express": "^4.17.15",
|
||||
"@urql/vue": "^1.0.4",
|
||||
"@urql/exchange-auth": "^2.1.6",
|
||||
"@urql/vue": "^1.1.2",
|
||||
"@vueuse/core": "^9.10.0",
|
||||
"axios": "^0.21.4",
|
||||
"cors": "^2.8.5",
|
||||
|
||||
Reference in New Issue
Block a user