Skip to content

gustavgenberg/node-bankid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-bankid

An npm module for integration with BankID.

Usage

import {BankIDClient} from 'node-bankid';

const client = new BankIDClient({
   pfx: '<pfx>',
   passphrase: '<passphrase>',
   ca: '<ca>',
   production: false,
   collectInterval: 1000
})

client.authenticateAndCollect({
   personalNumber: 'YYYYMMDDNNNN',
   endUserIp: '::1'
})
   .then((data) => console.log(data.completionData))
   .catch(console.error)

Methods

  • authenticate()
  • authenticateAndCollect()
  • sign()
  • signAndCollect()
  • collect()
  • cancel()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published