@types/jwa
TypeScript definitions for jwa
Last updated 3 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/jwa 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/jwa

Summary

This package contains type definitions for jwa (https://github.com/auth0/node-jwa#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jwa.

index.d.ts

// Type definitions for jwa 2.0
// Project: https://github.com/auth0/node-jwa#readme
// Definitions by: Daniel Hritzkiv <https://github.com/dhritzkiv>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

type Algorithm =
    | "HS256"
    | "HS384"
    | "HS512"
    | "RS256"
    | "RS384"
    | "RS512"
    | "PS256"
    | "PS384"
    | "PS512"
    | "ES256"
    | "ES384"
    | "ES512"
    | "none";

interface JWA {
    sign(input: string, secretOrPrivateKey: string): string;

    verify(input: string, signature: string, secretOrPublicKey: string): boolean;
}

declare function jwa(algorithm: Algorithm): JWA;

export = jwa;

Additional Details

  • Last updated: Fri, 15 Sep 2023 20:36:37 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Daniel Hritzkiv.

Current Tags

  • 2.0.1                                ...           latest (3 years ago)
  • 2.0.0                                ...           ts3.6 (5 years ago)
  • 2.0.0                                ...           ts3.7 (5 years ago)
  • 2.0.0                                ...           ts3.8 (5 years ago)
  • 2.0.0                                ...           ts3.9 (5 years ago)
  • 2.0.0                                ...           ts4.0 (5 years ago)
  • 2.0.0                                ...           ts4.1 (5 years ago)
  • 2.0.0                                ...           ts4.2 (5 years ago)
  • 2.0.0                                ...           ts4.3 (5 years ago)
  • 2.0.0                                ...           ts4.4 (5 years ago)
  • 2.0.1                                ...           ts4.5 (3 years ago)
  • 2.0.1                                ...           ts4.6 (3 years ago)
  • 2.0.1                                ...           ts4.7 (3 years ago)
  • 2.0.1                                ...           ts4.8 (3 years ago)
  • 2.0.1                                ...           ts4.9 (3 years ago)
  • 2.0.1                                ...           ts5.0 (3 years ago)
  • 2.0.1                                ...           ts5.1 (3 years ago)
  • 2.0.1                                ...           ts5.2 (3 years ago)
  • 2.0.1                                ...           ts5.3 (3 years ago)

2 Versions

  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |