@ahi40/common
Advanced tools
Comparing version 1.0.30 to 1.0.31
import { Request, Response, NextFunction } from 'express'; | ||
import { UserRoles } from '../rbac/userRoles'; | ||
interface UserPayload { | ||
@@ -6,2 +7,3 @@ id: string; | ||
exp: number; | ||
userRole: UserRoles; | ||
} | ||
@@ -8,0 +10,0 @@ declare global { |
@@ -16,2 +16,3 @@ "use strict"; | ||
req.currentUser = payload; | ||
console.log("received token info: " + payload); | ||
} | ||
@@ -18,0 +19,0 @@ catch (err) { |
{ | ||
"name": "@ahi40/common", | ||
"version": "1.0.30", | ||
"version": "1.0.31", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
23646
540