Can save Matrix session after authentication

This commit is contained in:
2025-11-05 22:53:55 +01:00
parent 1eaec9d319
commit 1438e2de0e
6 changed files with 124 additions and 18 deletions

View File

@@ -29,17 +29,19 @@ export function MatrixAuthCallback(): React.ReactElement {
count.current = code!;
await MatrixLinkApi.FinishAuth(code!, state!);
info.reloadUserInfo();
snackbar("Successfully linked to Matrix account!");
navigate("/matrix_link");
} catch (e) {
console.error(e);
setError(String(e));
} finally {
info.reloadUserInfo();
}
};
load();
});
}, [code, state]);
if (error)
return (