Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    idp-personapublic

    IDPPersona Build Status

    Persona client

    Getting Started

    Install the module with: npm install idp-persona

    Usage

    var idpPersona = require('idp-github')({ audience: 'http://myurl' });
    
    // Using the assertion provided by the Persona login, get the identity:
    idpPersona(assertion, function (err, identity) {
      if (err) {
        console.error('explode');
      }
      else {
        do_amazing_things_with(identity.id, identity.email);
        // identity.id and identity.email are the same thing
      }
    });
    

    Keywords

    none

    install

    npm i idp-persona

    Downloadsweekly downloads

    3

    version

    0.0.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar