0.1.3 • Published 8 months ago

@dfns/sdk-connect v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Interacting with DFNS iframe

This Nextjs project was created as a demo of how to interact with the Dfns iframe to be used to authenticate user actions via the dfns origin.

Installation

Populate .env file with credentials

.env.example needs to be renamed to .env and the credentials updated with valid information.

DFNS_API_URL='https://api.dfns.ninja' # change to app.dfns.io for production
DFNS_CRED_ID=XXX Cred ID From your service account XXX
DFNS_PRIVATE_KEY='-----BEGIN PRIVATE KEY-----
XXX Your Private Key XXX
-----END PRIVATE KEY-----'
DFNS_AUTH_TOKEN=XXX Auth Token from service account creation XXX

Install packages

npm install

Run in developer mode (hot reload)

npm run dev

To use a locally signed cert use for https

npm run devs

Important notes

  • Iframe url needs to be live
  • Iframe needs to accept the domain this project is running under. It currently accepts http://localhost:3001 for local development but rejects other origins
  • Iframe is under active development and might create breaking changes.
  • Iframe is not currently deployed to ninja only
0.1.3

8 months ago

0.1.0-alpha.10

1 year ago

0.1.0-alpha.14

1 year ago

0.1.0-alpha.16

1 year ago

0.1.0-alpha.15

1 year ago

0.1.0-alpha.17

1 year ago

0.1.0

11 months ago

0.1.0-alpha.19

12 months ago

0.1.1

10 months ago

0.1.0-alpha.8

1 year ago

0.1.0-alpha.5

1 year ago

0.1.0-alpha.4

1 year ago

0.1.0-alpha.1

1 year ago