idp-persona

0.0.1 • Public • Published

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
  }
});

Readme

Keywords

none

Package Sidebar

Install

npm i idp-persona

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • connrs