How to use the mashlib.authn function in mashlib

To help you get started, we’ve selected a few mashlib 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-panes / meeting / create.js View on Github external
var newInstanceButtonDiv = function () {
    return UI.authn.newAppInstance(dom,
      { noun: 'meeting',
        appPathSegment: appPathSegment},
      initializeNewInstanceInWorkspace)
  } // newInstanceButtonDiv
github solid / solid-panes / meeting / create.js View on Github external
document.addEventListener('DOMContentLoaded', function () {
  var UI = require('mashlib')
  var appPathSegment = 'meetulator.timbl.com'

  var inputStyle = 'background-color: #eef; padding: 0.5em;  border: .5em solid white; font-size: 150%; text-align: center;' //  ;
  var dom = document

  var div = document.getElementById('FormTarget')

  UI.authn.checkUser()  // kick off async operation

  // //////////////////////////////  Reproduction: spawn a new instance
  //
  // Viral growth path: user of app decides to make another instance
  //

  var newInstanceButtonDiv = function () {
    return UI.authn.newAppInstance(dom,
      { noun: 'meeting',
        appPathSegment: appPathSegment},
      initializeNewInstanceInWorkspace)
  } // newInstanceButtonDiv

  // ///////////////////////  Create new document files for new instance of app

  var initializeNewInstanceInWorkspace = function (ws, newBase) {

mashlib

Data mashup library

MIT
Latest version published 6 months ago

Package Health Score

56 / 100
Full package analysis