disconnect()
Othent JS SDK disconnect() function
Signs out the user (disconnect the user's wallet). This will require the user to log back in after called.
API
disconnect(): Promise<void>;
Example usage
import { Othent } from "@othent/kms";
const othent = new Othent({ appInfo, throwErrors: false, ... });
// The user signed in/up before:
await othent.connect();
// ...
const handleLogOut = async () => {
await othent.disconnect();
};
Last updated