INNER CODE UNIT · TypeScript

logout

dfinity/examples · motoko/vetkeys/basic_ibe/frontend/src/main.ts:263

export function logout() {
    void authClient?.signOut();
    const messagesDiv = document.getElementById("messages")!;
    messagesDiv.innerHTML = "";
    ibePrivateKey = undefined;
    myPrincipal = undefined;
    basicIbeActor = undefined;
    updateUI(false);
}

async function initAuth() {
    const isLocal =
        window.location.hostname === "localhost" ||
        window.location.hostname.endsWith(".localhost");
    // The client mints its delegations by calling the II canister, so its agent
    // needs the network's root key to verify the responses.
    authClient = new AuthClient({
        identityProvider: {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…