Comparing version 2.0.13-alpha.3 to 2.0.13-alpha.4
@@ -72,3 +72,6 @@ "use strict"; | ||
this.permissionHandler = async (ctx, userId) => { | ||
const startedAt = Date.now(); | ||
const permissions = await kauthApi.listPermissionsByUserId(userId); | ||
const expired = Date.now() - startedAt; | ||
ctx.logger.info('[egg-kauth] get %s permissions, expired %sms', permissions?.length, expired); | ||
ctx.permissions = permissions; | ||
@@ -75,0 +78,0 @@ }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = factory; | ||
const lib_1 = require("../lib"); | ||
@@ -17,2 +18,1 @@ function factory(kauthConfig) { | ||
} | ||
exports.default = factory; |
{ | ||
"name": "egg-kauth", | ||
"version": "2.0.13-alpha.3", | ||
"version": "2.0.13-alpha.4", | ||
"description": "egg kauth plugin", | ||
@@ -5,0 +5,0 @@ "eggPlugin": { |
27099
627