@datafund/consents-summary

0.1.5 • Public • Published

Consents Summary

React plugin for displaying Consents Summary. Each consent's details can be shown as Consent Receipt in human-readable JSON form.

Quick Use

Download package using npm:

$ npm install --save @datafund/consents-viewer


Import package to your React app:

import { ConsentsSummary } from 'consents-summary';


Prepare Consent Receipt data:

let tokenData = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdXJpc2RpY3Rpb24iOiJTSSIsImNvbnNlbnRSZWNlaXB0SUQiOiJmZDFlNWJkNy0xODJjLTQyNDctOTA2NC1mMTYzYWVhNTllYjEiLCJwdWJsaWNLZXkiOiItLS0tLUJFR0lOIFBVQkxJQyBLRVktLS0tLVxuTUZrd0V3WUhLb1pJemowQ0FRWUlLb1pJemowREFRY0RRZ0FFRVZzL281K3VRYlRqTDNjaHluTDR3WGdVZzJSOVxucTlVVThJNW1Fb3ZVZjg2UVo3a09CSWpKd3FuekQxb21hZ2VFSFd3SGRCTzZCK2RGYWJtZFQ5UE94Zz09XG4tLS0tLUVORCBQVUJMSUMgS0VZLS0tLS0iLCJpYXQiOjE1NjE1NTMyOTEsImV4cCI6MTU2MTU5NjQ5MSwiYXVkIjoiaHR0cHM6Ly9kYXRhZnVuZC5pbyIsImlzcyI6IkRhdGFmdW5kIiwic3ViIjoiQ29uc2VudCBSZWNlaXB0In0.MEYCIQCsF_1Z5gXruTD_8Lvqwj3Tl72bG70aDGJaVH3vgDONOwIhAP04LqN2z6J5iflFlMz9bYldSgx8MaVuUHNRKCW_YW0r" 


Include component with data parameter in render() method of your app:

<ConsentsSummary data={{tokenData}} />

Props

  • data (JWT token)

Readme

Keywords

none

Package Sidebar

Install

npm i @datafund/consents-summary

Weekly Downloads

0

Version

0.1.5

License

ISC

Unpacked Size

12.3 kB

Total Files

5

Last publish

Collaborators

  • tfius
  • markuszw
  • crtahlin