Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: on token invalidation it shall be redirected to home page (#1087)

Peng Xiaocbdc751be1d8
diff --git a/apps/web/src/components/message-center-handler/index.tsx b/apps/web/src/components/message-center-handler/index.tsx
index a724bd88e3..f53ed3756b 100644
--- a/apps/web/src/components/message-center-handler/index.tsx
+++ b/apps/web/src/components/message-center-handler/index.tsx
@@ -25,6 +25,7 @@ export function MessageCenterHandler({
//
// fix: a better option is to keep loading the app, and prompt the user to login
// or perhaps displaying page 401?
+ await router.push('/');
router.reload();
}
});