@types/jwa
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

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 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: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Daniel Hritzkiv.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.3
    8,385
  • 2.0.2
    167
  • 2.0.1
    16
  • 2.0.0
    4,197

Package Sidebar

Install

npm i @types/jwa

Weekly Downloads

12,765

Version

2.0.3

License

MIT

Unpacked Size

3.35 kB

Total Files

5

Last publish

Collaborators

  • types