summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/mios.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/app/common/mios.ts b/src/client/app/common/mios.ts
index fd267bc3f8..7baf974adf 100644
--- a/src/client/app/common/mios.ts
+++ b/src/client/app/common/mios.ts
@@ -220,7 +220,7 @@ export default class MiOS extends EventEmitter {
public signout() {
localStorage.removeItem('me');
- document.cookie = `i=; domain=.${hostname}; expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
+ document.cookie = `i=; domain=${hostname}; expires=Thu, 01 Jan 1970 00:00:01 GMT;`;
location.href = '/';
}
@@ -325,6 +325,11 @@ export default class MiOS extends EventEmitter {
// キャッシュがあったとき
if (cachedMe) {
+ if (cachedMe.token == null) {
+ this.signout();
+ return;
+ }
+
// とりあえずキャッシュされたデータでお茶を濁して(?)おいて、
fetched(cachedMe);