📄Credentials Module
The Credentials module, accessible viassx.credentials
, provides functionality to retrieve credentials issued by the SpruceKit Issuer. This module requires the Storage Module to be properly configured.
Background
All credentials issued by the SpruceKit Issuer are stored on Kepler at /shared/credentials
. This module makes it easier to retrieve these credentials by:
Requesting read access to this shared folder
Encapsulating the prefix management to retrieve the data
Getting Started
By using Kepler via the credentials module within SSX, you hereby agree to the Kepler Developer Terms found here.
To use the credentials module within SSX, you will need to configure the modules
parameter in the SSX configuration object.
Below is an example of initializing an SSX instance with the storage enabled:
You must enable the storage module to use the credentials module. See the Storage Module section for more information about the storage module.
Issuing Credentials (Optional)
Having credentials issued by the SpruceKit Issuer is not required to use the credentials module, but if you want to test all methods, you must issue at least one credential to be retrieved. You can issue credentials by following these steps:
Sign in with your Ethereum account
Follow the instructions to get a credential of your choice issued
Methods
get
Gets the stored credential associated with a specific key.
Here is an example of how to use it:
list
Lists all the credentials currently stored.
Here is an example of how to use it:
Last updated