mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 01:56:27 +08:00
fix: recover login state
This commit is contained in:
@@ -172,7 +172,7 @@ export const AppStateProvider = ({ children }: { children?: ReactNode }) => {
|
||||
}));
|
||||
};
|
||||
token.onChange(callback);
|
||||
|
||||
token.refreshToken();
|
||||
return () => {
|
||||
token.offChange(callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user