Absolutely, it’s the best place to answer questions like this
I think you have it correct in terms of parameters (appname, auth, chainid), but the
removeSession call is async, so you’ll want to
await link.removeSession('eospowerupio', sessions.auth, sessions.chainId)
I think what’s happening in the above code is the
listSessions call for
sessions2 is executing before the removal of the session takes place.
If you’re trying to logout all accounts and want a quicker path, you can also use the
clearSessions call to log out any and all accounts without having to do as many checks:
That’ll clear out any sessions within the adapter. I don’t know if you’re aiming for this to be a single user logout or logout all users, but it’s an option!