js-composedb icon indicating copy to clipboard operation
js-composedb copied to clipboard

unsetDid for the client when logging out

Open pradel opened this issue 1 year ago • 0 comments

Description

In order to authenticate with composeDB we do the following to authenticate the requests.

composeClient.setDID(did);

When logging out there is no way to unset the did and do the next request as an unauthenticated user. It would be very handy to be able to do one of the following.

composeClient.setDID(null);
composeClient.unsetDid();

For now as a workaround I am doing the following

composeClient.setDID(null as any);

pradel avatar Feb 19 '23 17:02 pradel