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.

It is recommended to only use this function once the user clicks a clearly marked "Disconnect" button in your application.

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