Keeping user logged in between browser refreshes (or: how to stringify authClient/agent/actor)

Ok, I think I see what’s going on here. AuthClient.create() pulls from localStorage (or wherever) and sometimes gets back an already-logged-in authClient that will resolve true for isAuthenticated().

Testing this out, when I try to use an Actor initialized with this AuthClient’s identity, I get back

Failed to authenticate request
Invalid signature: Invalid basic signature: Ed25519 signature could not be verified: public key

So I must still be doing something wrong. I’m still playing, but at least now I have a better idea of how this should work. Thank you for all your help! If you have any insight on this error, or if I’m way off base, let me know.