@idkollen/client
v0.1.0
Published
API client for the IDkollen REST API
Maintainers
Readme
IDkollen JavaScript/TypeScript Client
API client for the IDkollen REST API. Ships ESM and CJS bundles with full type declarations.
Installation
npm install @idkollen/clientUsage
import { IdkollenClientBuilder } from "idkollen-client";
import { BankIdSeAuthRequest, PollOptions } from "idkollen-client";
const client = new IdkollenClientBuilder("client_id", "client_secret")
.environment("staging")
.build();
const session = await client.bankidSe().auth(new BankIdSeAuthRequest());
const result = await client
.bankidSe()
.waitForAuth(session.id, new PollOptions());
console.log(result);Development
Prerequisites
Build
To build the project, simply issue the following command:
$ npm run buildTest
Linting
$ npm run check
$ npm run lintUnit Testing
$ npm run test