This is a demonstration of how a client can use the Schibsted Account login flows. You can see it live at:
The main intention of this code is to have a simplified demo of the most important features of SDK for browsers
- Clone this repo.
- Install dependencies
npm run install
. - And run
npm run dev
script.
- You need a few configs obtained from Self-Service in the right environment in order to get
started. Set your Identity client credentials in the
.env
file in the root folder. To get a head start you can just copy a template that's already included in the repo (run:cp .env-example .env
and fill in the blanks. Take a look at .env-example to see what is needed. - Then do a
source .env && npm start
ornpm run dev
.
For this Example app a simple backend application is exposed.
The contents for the backend application can be found in the /server
directory.
The frontend code is placed in the /public
directory, and usage of SDK can be found in index.js.