New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-idin

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-idin

NodeJS Library for iDIN (https://www.idin.nl/)

  • 2.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
756
decreased by-7.8%
Maintainers
1
Weekly downloads
 
Created
Source

node-idin Build Status Coverage Status

Node.js Library for iDIN. You can find all the protocol documentation here. Supporting Node 10+.

How to use

Install the dep by:

yarn add node-idin

Create a NodeIdin instance:

const config = {
	merchantId:  '35235',
	merchantSubId:  '0',
	routingEndpoint:  'https://abnamro-test.bank-request.com/bvn-idx-bankid-rs/bankidGateway',
	routingCert:  '-----BEGIN CERTIFICATE-----...',
	privateKey:  '-----BEGIN RSA PRIVATE KEY-----...',
	publicKey:  '-----BEGIN PUBLIC KEY-----...',
	publicKeyFingerprint:  'xekf2o3f...',
}

const idin = new NodeIdin(config);

Use the method you need:

const directory = await idin.getDirectory();
const transaction = await idin.getTransaction({
	loa: 'loa3',
	merchantReturnUrl: 'https://...',
	idPrefix: 'RND',
	requestedService: '21968',
	defaultLanguage: 'en',
	expirationPeriod: 'PT5M',
	issuerId: 'randomId',
	transactionId: 'randomId#2',
});
const status = await idin.getStatus({ transactionId:  '92fo2k3qdd' });

Notes

  • Read protocol documentation for a better understanding of the parameters.

  • This library does not fully implement the protocol and has some issues that still need to be addressed. Use at your own risk.

Keywords

FAQs

Package last updated on 10 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc