Skip to content

selfguard/selfguard-react-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SelfGuard

Universal API For Encryption

SelfGuard allows you to easily encrypt and tokenize data in a secure and compliant manner.

Get your API-Key at https://selfguard.xyz

Description

This NPM Module allows you to directly import SelfGuard's pre-built react components. The first one being encrypted notifications.

Installation

npm install selfguard-react-components

Notifications Component

Import Notifications Module

import {Notifications} from 'selfguard-react-components';

Embed

<div>
	<Notifications userAddress={address}  api_key={API_KEY}  />
</div>

Notifications API

Once users have signed up for notifications on your dapp, you will be able to see the list of your users in the SelfGuard dashboard. You can then send them notifications using the following APIS.

Send SMS

await sg.sendSMS({address:'0xadfb..',text:'Example Text'});

Send Email

await sg.sendEmail({address:'0xadfb..',from:'[email protected]',fromName:'test',replyTo:'[email protected]', reployToName:'test',subject:'Test Subject', html:'This is the content of the email'});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published