From 0b8740498629de4ff4715990fdd324973dd06852 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 26 Sep 2019 18:01:38 +0200 Subject: [PATCH] Don't keep cached identities query Otherwise when relogging as a different user you'll get their defaultActor Signed-off-by: Thomas Citharel --- js/src/utils/auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/js/src/utils/auth.ts b/js/src/utils/auth.ts index 75f01c598..a1901c6ec 100644 --- a/js/src/utils/auth.ts +++ b/js/src/utils/auth.ts @@ -47,6 +47,7 @@ export async function initializeCurrentActor(apollo: ApolloClient) { const result = await apollo.query({ query: IDENTITIES, + fetchPolicy: 'network-only', }); const identities = result.data.identities; if (identities.length < 1) return;