npm.io
5.0.0 • Published 1 year ago

@types/oidc-token-hash

Licence
MIT
Version
5.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/oidc-token-hash

Summary

This package contains type definitions for oidc-token-hash (https://github.com/panva/oidc-token-hash).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oidc-token-hash.

index.d.ts

export interface Names {
    claim: string;
    source: string;
}

export function generate(token: string, alg: string, crv?: string): string;

export function validate(names: Names, actual: string, source: string, alg: string, crv?: string): void;

Additional Details

  • Last updated: Fri, 18 Oct 2024 0816 GMT
  • Dependencies: none

Credits

These definitions were written by Filip Skokan.