How to use the solid-auth-client.logout function in solid-auth-client

To help you get started, we’ve selected a few solid-auth-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github solid / solid-ui / src / authn / authn.ts View on Github external
function logoutButtonHandler (_event) {
    // UI.preferences.set('me', '')
    solidAuthClient.logout().then(
      function () {
        const message = `Your WebID was ${me}. It has been forgotten.`
        me = null
        try {
          log.alert(message)
        } catch (e) {
          window.alert(message)
        }
        box.refresh()
        if (listener) listener(null)
      },
      err => {
        alert('Fail to log out:' + err)
      }
    )
  }
github Eximua / solid-ipfs / src / solid-file-client.js View on Github external
logout: async function(){
    session=''
    var res = await solid.logout();
    return res;
},
github linkeddata / dokieli / src / auth.js View on Github external
userInfo.addEventListener('click', async function(e) {
      if (e.target.closest('.signout-user')) {
        if (Config.User.OIDC) {
          await solidAuth.logout();
        }

        storage.removeLocalStorageProfile()

        Config.User = {
          IRI: null,
          Role: 'social',
          UI: {}
        }

        util.removeChildren(node);

        var documentMenu = document.querySelector('#document-menu')

        showUserSigninSignout(documentMenu.querySelector('header'))

solid-auth-client

Opaquely authenticates solid clients

MIT
Latest version published 3 years ago

Package Health Score

52 / 100
Full package analysis

Similar packages