Socket
Socket
Sign inDemoInstall

@opengovsg/myinfo-gov-client

Package Overview
Dependencies
68
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc