The interface loaded by pywebview will trigger a CTRL+F5 hard refresh in the frontend after login failure, which will cause the injection of api_js to be cleared #1473
Originally posted by **motcs** September 20, 2024
The interface loaded by pywebview will trigger a CTRL+F5 hard refresh in the frontend after login failure, which will cause the injection of api_js to be cleared. Please ask whether you can avoid the problem that api_js is cleared after hard refresh, or inject api_js again after hard refresh, instead of invalidating, which causes pywebview.api to fail after logging in again
Discussed in https://github.com/r0x0r/pywebview/discussions/1472