Can save Matrix session after authentication
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user