Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

credential-status

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

credential-status

credential status aggregator for did-jwt

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
increased by15.78%
Maintainers
1
Weekly downloads
 
Created
Source

credential-status

codecov CircleCI Codacy Badge

A credential status aggregator for did-jwt. A credential status method aggregator for did-jwt.

Usage

Given a JWT credential that contains a status property, it should call the appropriate status checking method and return its result. This library is meant to be used with did-jwt, as a status method aggregator called during the verification step.

Example:

A JWT with a status field in the payload:

{
  "status": {
    "id": "mainnet:0xStatusRegistryAddress",
    "type": "EthrStatusRegistry2019"
  },
  "iss": "did:ethr:0x...",
  "vc": {
    //...
  }
  //...
}
import { EthrStatusRegistry } from ethr-status-registry
import { Status } from 'credential-status'

const status = new Status({
    ...new EthrStatusRegistry(config).asStatusMethod,
})

val result = await status.checkStatus(token)

// { "revokedAt": "0x5348684" }
  

Note: only issuer revocations are considered for now

Keywords

FAQs

Package last updated on 31 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc