我正在使用anuglar keycloak库,当访问令牌和刷新令牌都过期时会出现问题。当用户单击要调用BE的操作时,会调用keycloak服务器进行令牌openid-connect/token,这将返回:error_description:"Token is not active"
这很好,但问题是在此之后什么都不会发生,我们希望用户在发生时被重定向到登录页面。
我在网上找不到任何东西,但是我如何让一个函数运行到某个特定的事件(例如。mousemove或mouseup)是否被触发?就像这样:onMouseDown(): void { // do stuff
if(mouseUpEvent || mouseMoveEvent) { // <-- how do I exit the loop when either mouseUp or mouseMove