From 55780f3caf8c17cd5e55bda77ae86d0a031676b6 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Tue, 30 Jul 2019 10:09:38 +0100 Subject: [PATCH] Extend comment about checking tokens --- src/IdentityAuthClient.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/IdentityAuthClient.js b/src/IdentityAuthClient.js index dcc61c277b..a1a696e4c3 100644 --- a/src/IdentityAuthClient.js +++ b/src/IdentityAuthClient.js @@ -57,7 +57,13 @@ export default class IdentityAuthClient { } _checkToken(token) { - // TODO: Test current API token via /account endpoint + // TODO: Test current API token via `/account` endpoint + // At the moment, Sydent doesn't implement `/account`, so we can't use + // that yet. We could try a lookup for a null address perhaps...? + // In any case, we should ensure the token in `localStorage` is cleared + // appropriately. We already clear storage on sign out, but we'll need + // additional clearing when changing ISes in settings as part of future + // privacy work. } async registerForToken() {