@seald-io/sdk-plugin-ssks-password
TypeScript icon, indicating that this package has built-in type declarations

0.29.0 • Public • Published

@seald-io/sdk-plugin-ssks-password

This module is a plugin for the Seald SDK : @seald-io/sdk.

The @seald-io/sdk-plugin-ssks-password module allows to use the SSKS key storage service to store Seald identities easily and securely, encrypted by a user password.

This module exposes a function, that takes keyStorageURL as argument, and returns a SDKPlugin which can be passed to the SealdSDK constructor.

When the Seald SDK is passed this plugin, the SealdSDK instance is modified to have a ssksPassword property, which exposes the SSKSPassword interface.

Example:

import SealdSDK from '@seald-io/sdk'
import SealdSDKPluginSSKSPassword from '@seald-io/sdk-plugin-ssks-password'

const seald = SealdSDK({
  appId,
  apiURL,
  plugins: [SealdSDKPluginSSKSPassword(keyStorageURL)] // passing the plugin to SealdSDK
})
await seald.initialize()

// Creating a Seald identity
await seald.initiateIdentity({ signupJWT })
// The SealdSDK instance now has a `ssksPassword` property : we can use `saveIdentity`
await seald.ssksPassword.saveIdentity({ userId, password })

For more information, visit our website : https://seald.io

For the full documentation, visit our documentation page : https://docs.seald.io/en/sdk/

© 2023 Seald SAS

You can find the license information of Open Source libraries used in Seald SDK for JavaScript at https://download.seald.io/download/js_dependencies_licenses.txt.

Readme

Keywords

none

Package Sidebar

Install

npm i @seald-io/sdk-plugin-ssks-password

Weekly Downloads

612

Version

0.29.0

License

UNLICENSED

Unpacked Size

669 kB

Total Files

11

Last publish

Collaborators

  • arantes
  • seald
  • tex0l