0.1.3 • Published 1 year ago
@dfns/sdk-connect v0.1.3
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 XXXInstall packages
npm installRun in developer mode (hot reload)
npm run devTo use a locally signed cert use for https
npm run devsImportant notes
- Iframe url needs to be live
- Iframe needs to accept the domain this project is running under. It currently accepts
http://localhost:3001for 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
1 year 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
1 year ago
0.1.0-alpha.19
1 year ago
0.1.1
1 year ago
0.1.0-alpha.8
2 years ago
0.1.0-alpha.5
2 years ago
0.1.0-alpha.4
2 years ago
0.1.0-alpha.1
2 years ago