use-jwt-manager
Advanced tools
Comparing version 0.1.6 to 0.1.61
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15732
374