MyInfo Demo App
The demo application meant to illustrate how to integrate your application with MyInfo APIs.
Contents
Quick Start
1.1 Install Node and NPM (skip this step if you have NPM installed)
For the demo application to run, you will need to install Node and NPM.
Follow the instructions given by the links below depending on your OS.
1.2 Run NPM install
Run the following command in the folder you unzipped the application:
npm install
1.3 Start the Application
Execute the following command to start the application:
Test with Payload Encryption & PKI Digital Signature
npm start
Or, test without Payload Encryption & PKI Digital Signature
npm run sandbox
Access the Application on Your Browser You should be able to access the sample application via the following URL or click here:
http://localhost:3001
How To Use
Login with SingPass
Click RETRIEVE MYINFO and select the test user ID from the Mock Pass.
Note: refer to the Personas on the NDI Developer and Partner Portal for the test accounts to be used.
MyInfo Connector NodeJS
This demo application is using the myinfo-connector-v4-nodejs library. MyInfo Connector aims to simplify consumer's integration effort by providing an easy to use Javascript library to integrate into your application.
Troubleshooting
Change the logging level for debugging within the library.
Edit the ./config/config.js
, change the DEBUG_LEVEL
value to debug
.
IMPORTANT NOTE: debug mode should never be turned on in production
Reporting Issue
You may contact our support for any other technical issues, and we will respond to you within 5 working days.