@opengovsg/myinfo-gov-client
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@opengovsg/myinfo-gov-client", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A lightweight client to easily call the MyInfo TUO endpoint for the Singapore government. Compatible with NodeJS version >=6.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -100,1 +100,8 @@ # myinfo-gov-client | ||
See a list of available MyInfo test accounts [here](docs/TESTACCOUNTS.md). | ||
# Contributing | ||
We welcome contributions to code open-sourced by the Government Technology | ||
Agency of Singapore. All contributors will be asked to sign a Contributor | ||
License Agreement (CLA) in order to ensure that everybody is free to use their | ||
contributions. |
@@ -387,3 +387,3 @@ 'use strict' | ||
*/ | ||
getPersonBasic ({ uinFin, requestedAttributes, txnNo }) { | ||
getPersonBasic ({ uinFin, requestedAttributes, txnNo, singpassEserviceId: seId }) { | ||
if (!requestedAttributes || !requestedAttributes.length > 0) { | ||
@@ -397,2 +397,4 @@ requestedAttributes = ALL_ATTRIBUTES.personBasic | ||
const singpassEserviceId = seId || this.singpassEserviceId | ||
// Construct the request basestring | ||
@@ -404,3 +406,3 @@ const basestring = this._formulateBaseString({ | ||
clientId: this.clientId, | ||
singpassEserviceId: this.singpassEserviceId, | ||
singpassEserviceId, | ||
nonce, | ||
@@ -442,3 +444,3 @@ requestedAttributes, | ||
client_id: this.clientId, | ||
singpassEserviceId: this.singpassEserviceId, | ||
singpassEserviceId, | ||
txnNo: txnNo, | ||
@@ -445,0 +447,0 @@ } |
189619
8022
107