Socket
Socket
Sign inDemoInstall

@vitrical/utils

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitrical/utils - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

11

jwt.d.ts
import jwt from 'jsonwebtoken';
export type JwtPayload = jwt.JwtPayload;
export type Secret = jwt.Secret;
export type SignOptions = jwt.SignOptions;
export type VerifyErrors = jwt.VerifyErrors;
export type DecodeOptions = jwt.DecodeOptions;
export declare const tokenize: (obj: {
[key: string]: any;
}, key: jwt.Secret, options?: jwt.SignOptions) => Promise<string>;
export declare const detokenize: (token: string, key: jwt.Secret, options?: jwt.SignOptions) => Promise<jwt.JwtPayload | jwt.Jwt>;
export declare const decodeToken: (token: string, options?: jwt.DecodeOptions) => jwt.JwtPayload;
}, key: Secret, options?: SignOptions) => Promise<string>;
export declare const detokenize: (token: string, key: Secret, options?: SignOptions) => Promise<JwtPayload>;
export declare const decodeToken: (token: string, options?: DecodeOptions) => JwtPayload;
{
"name": "@vitrical/utils",
"version": "1.2.5",
"version": "1.2.6",
"description": "Collection of useful functions and typings",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

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