Iota Core
The Iota Core library provides a method for generating the Iota Credentials required to initiate the WebSocket data-sharing mode of the Affinidi Iota Framework.
Install Dependency
Package: @affinidi-tdk/iota-core
npm install @affinidi-tdk/iota-core --saveCheck the latest version on the npm registry or view the source on GitHub.
Classes and Methods
Iota
Provides methods related to Affinidi Iota Framework to generate credentials to sign the request token.
limitedTokenToIotaCredentials
A static method that fetches the Iota Credentials by passing an Iota JWT Token from AuthProvider.
Parameters
iotaJwt
string
RequiredJSON Web Token generated from authProvider.createIotaToken().
Example
import { Iota } from '@affinidi-tdk/iota-core'
import { AuthProvider } from '@affinidi-tdk/auth-provider'
const iotaToken = await authProvider.createIotaToken(
'<IOTA_CONFIGURATION_ID>',
'<LOGGED_IN_USER_DID>',
)
const iotaCredentials = await Iota.limitedTokenToIotaCredentials(iotaToken.iotaJwt)Was this page helpful?
Glad to hear it! Please tell us how we can improve more.
Sorry to hear that. Please tell us how we can improve.
Thank you for sharing your feedback so we can improve your experience.