tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

bmauth.js (530B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 "use strict";
      6 
      7 if (!window.BmAuth) {
      8  window.BmAuth = {
      9    init: () => new Promise(() => {}),
     10    handleSignIn: () => {
     11      // TODO: handle this properly!
     12    },
     13    isAuthenticated: () => Promise.resolve(false),
     14    addListener: () => {},
     15    api: {
     16      event: {
     17        addListener: () => {},
     18      },
     19    },
     20  };
     21 }