Socket
Socket
Sign inDemoInstall

use-jwt-manager

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-jwt-manager - npm Package Compare versions

Comparing version 0.1.6 to 0.1.61

2

package.json

@@ -7,3 +7,3 @@ {

},
"version": "0.1.6",
"version": "0.1.61",
"description": "hook for jwt auth",

@@ -10,0 +10,0 @@ "repository": {

@@ -23,6 +23,12 @@ interface UserDetails {

interface ApiResponse {
data: any;
message: string;
status: boolean;
}
interface jwtManagerProps {
refresh: () => Promise<TokenParams>;
me: () => Promise<UserDetails>;
login: (user: UserDetails) => Promise<TokenParams>;
refresh: () => Promise<ApiResponse & { data: TokenParams }>;
me: () => Promise<ApiResponse & { data: UserDetails }>;
login: (user: UserDetails) => Promise<ApiResponse & { data: TokenParams }>;
config: { TOKEN_KEY: string; REFRESH_TOKEN_KEY: string };

@@ -45,2 +51,2 @@ }

export { TokenParams, UserDetails, UserContextReducerParams, jwtManagerProps, jwtManagerContext, JwtError };
export { TokenParams, UserDetails, UserContextReducerParams, jwtManagerProps, jwtManagerContext, JwtError, ApiResponse };

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