The IBM Cloud App ID SDK can be used with a Vanilla Javascript App. Read the official documentation for information on getting started with IBM Cloud App ID and single-page applications.
Before you begin, you will need an IBM Cloud App ID instance with a singlepageapp
application created. For more information on how to create a singlepageapp
, visit the documentation.
In the config.json
file, replace <CLIENT_ID> and <WELL_KNOWN_ENDPOINT> with the clientId
and discoveryEndpoint
from the application credentials.
{
"clientId": "<CLIENT_ID>",
"discoveryEndpoint": "<WELL_KNOWN_ENDPOINT>"
}
Make sure you have updated the config.json
with your application credentials.
- Run
npm install
- Start the sample application by running
npm start