fix: Unable to access document without reload after 24h+ session

This commit is contained in:
Tom Moor
2023-08-05 08:24:37 -04:00
parent 042ea7b61f
commit 5a60329021
3 changed files with 6 additions and 11 deletions

View File

@@ -94,12 +94,9 @@ function MultiplayerEditor({ onSynced, ...props }: Props, ref: any) {
);
provider.on("authenticationFailed", () => {
showToast(
t(
"Sorry, it looks like you dont have permission to access the document"
)
);
history.replace(homePath());
void auth.fetch().catch(() => {
history.replace(homePath());
});
});
provider.on("awarenessChange", (event: AwarenessChangeEvent) => {