1.0.3 • Published 2 years ago

@types/jwt-encode v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/jwt-encode

Summary

This package contains type definitions for jwt-encode (https://www.npmjs.com/package/jwt-encode).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jwt-encode.

index.d.ts

// Type definitions for jwt-encode 1.0
// Project: https://www.npmjs.com/package/jwt-encode
// Definitions by: Shakirov Kirill <https://github.com/turisap>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

interface BaseOptions {
    alg: 'HS256';
    typ: 'JWT';
}

type Options = Partial<BaseOptions> & {
    [key: string]: string;
};

declare function sign(data: unknown, secret: string, options?: Options): string;

export = sign;

Additional Details

  • Last updated: Fri, 15 Oct 2021 21:01:20 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Shakirov Kirill.

1.0.2

2 years ago

1.0.1

2 years ago

1.0.3

2 years ago

1.0.0

4 years ago