Commit 48798e96 authored by 肖人杰's avatar 肖人杰

'fix:增加额外token判断'

parent e504d2f8
......@@ -339,7 +339,7 @@ function token(opts) {
const publicKey = axios(`${opts.apiBase}/auth/oauth2/public-key.pem`);
return async function (ctx, next) {
let authorizationToken = ctx.getAuthorizationToken();
if (authorizationToken) {
if (authorizationToken && authorizationToken.indexOf(".") > 0) {
try {
let { data } = await publicKey;
// token解密,缓存
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment