PersonaGrata
Does remote verification using Mozilla's API right now. Will add local verification when it is stable.
You MUST pass the current domain to the options parameter when using this in production or it may accept verifications from any domain.
API
remote([options])
local([options]) // Not yet implemented
options
won't matter until we have local verification- Both return a verifier function which should be called as shown below.
verify(assertion, [options,] callback)
- assertion is the Persona assertion you get from the browser
options
should be an object providing information about the domain doing the verification
Example:
var verify = ; // Assume body was already parsed by some middlewareapp;