Clear storage after logout
This commit is contained in:
1 parent
b55aa12100
commit
6e91ec3a0e
2 files changed
+2
-1
No files matched your search
@@ -254,6 +254,7 @@ export const ClientProvider: FC<Props> = ({ children }) => {
|
||||
|
||||
const logout = useCallback(async () => {
|
||||
await client.logout(undefined, true);
|
||||
await client.clearStores();
|
||||
clearSession();
|
||||
setState({
|
||||
client: undefined,
|
||||
|
||||
Reference in new issue
Block a user