Indicates whether the user is currently authenticated.
API
isAuthenticated: boolean;
Example usage
import { Othent } from"@othent/kms";constothent=newOthent({ appInfo, throwErrors:false,... });// ...conststoreSecret=async (key:string, plaintext:string) => {// Manually make sure the user is authenticated, or prompt them to authenticate:if (!othent.isAuthenticated) {awaitothent.connect(); }// Now we can call other functions from Othent:constencryptedData=awaitothent.encrypt(plaintext);localStorage.set(key, encryptedData);}