Comparing version 0.2.25 to 0.2.26
@@ -109,2 +109,3 @@ "use strict"; | ||
if (this.authHandler) { | ||
sub = await this.subjectProvider.verify(token); | ||
if (!sub) { | ||
@@ -118,3 +119,2 @@ const redirectIgnored = this.unauthorizedRedirectIgnore && ctx.request.path.startsWith(this.unauthorizedRedirectIgnore); | ||
} | ||
sub = await this.subjectProvider.verify(token); | ||
await this.authHandler(ctx, sub); | ||
@@ -121,0 +121,0 @@ } |
@@ -0,1 +1,10 @@ | ||
## [0.2.26](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-egg/compare/v0.2.25...v0.2.26) (2021-02-05) | ||
### Bug Fixes | ||
* mv sub ([368f6ba](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-egg/commit/368f6ba0bb4951bb48e3f88254fccede6afae394)) | ||
## [0.2.25](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-egg/compare/v0.2.24...v0.2.25) (2021-02-04) | ||
@@ -2,0 +11,0 @@ |
{ | ||
"name": "egg-kauth", | ||
"version": "0.2.25", | ||
"version": "0.2.26", | ||
"description": "egg kauth plugin", | ||
@@ -5,0 +5,0 @@ "eggPlugin": { |
30105