mirror of
https://github.com/wassname/talk.git
synced 2026-07-17 11:33:39 +08:00
feat: don't use expired token (#2082)
This commit is contained in:
@@ -92,7 +92,7 @@ function createRelayEnvironment() {
|
||||
const tokenGetter: TokenGetter = () => {
|
||||
const localState = source.get(LOCAL_ID);
|
||||
if (localState) {
|
||||
return localState.authToken || "";
|
||||
return (localState.loggedIn && localState.authToken) || "";
|
||||
}
|
||||
return "";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user