Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Latest commit

 

History

History

irma-console

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

IRMA console

This plugin contains a console based front-end for IRMA flows. It's mostly useful for testing purposes or for use in nodejs applications.

This plugin takes no special options or parameters to the start method. It will render a QR code to either the local nodejs terminal or the browser console.

Usage

const IrmaCore = require('@privacybydesign/irma-core');
const Console  = require('@privacybydesign/irma-console');

const irma = new IrmaCore(/* options */);
irma.use(Console);
irma.start();

Extra behaviour

The irma-console plugin makes it possible for users to abort the session without completing it. When using this plugin, the start method of irma-core will reject its promise in this scenario using the callback message Aborted.