https://github.com/selfkeyfoundation/relying-party-kycc-demo
https://github.com/selfkeyfoundation/relying-party-kycc-demo
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/selfkeyfoundation/relying-party-kycc-demo
- Owner: SelfKeyFoundation
- License: gpl-3.0
- Created: 2019-11-26T09:54:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T01:43:39.000Z (over 3 years ago)
- Last Synced: 2025-02-13T02:55:29.875Z (over 1 year ago)
- Language: JavaScript
- Size: 2.42 MB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Login With Selfkey Demo for KYCC users
## Contents
- [Usage](#usage)
- [License](#license)
## Usage
### Install
```sh
git clone https://github.com/SelfKeyFoundation/relying-party-kycc-demo.git
cd relying-party-kycc-demo
npm install
```
### Run
```sh
npm start
```
### Run dev
```sh
npm run start-dev
```
### SDK code example
From [routes/lws.js](https://github.com/SelfKeyFoundation/relying-party-kycc-demo/blob/master/routes/lws.js)
```js
const fileProcessor = {
stream: false,
process: (file, id) => 'processed file url :)'
};
let kyccUser = await sk.kycc.getKYCCUserDataForToken(token, {
fileProcessor,
templateId: LWS_TEMPLATE_ID,
instanceUrl: KYCC_API_URL
});
```
[The GPL-3.0 License](http://opensource.org/licenses/GPL-3.0)
Copyright (c) 2018 SelfKey Foundation