Socket
Book a DemoInstallSign in
Socket

@datafund/consents-summary

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datafund/consents-summary

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

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
2
Created
Source

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)

FAQs

Package last updated on 27 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts