OthentKMS disconnect() function
The disconnect() function terminates the current session with applications, logging the user out. This ensures that subsequent actions with the application require re-authentication.
To use the disconnect() function, import it from the @othent/kms package and call it within an asynchronous function as follows:
import { disconnect } from "@othent/kms";
const handleConnect = async () => {
await disconnect();
};
Invoking disconnect() will remove the user's session, requiring reconnecting for future interactions. No information is returned on successful disconnection.