Fixing a bug found by tests in auth.
This commit is contained in:
parent
4a8de4c7d4
commit
918a95071d
|
@ -29,7 +29,8 @@ module.exports = async (ctx, next) => {
|
||||||
if (!isClient(ctx)) {
|
if (!isClient(ctx)) {
|
||||||
token = ctx.cookies.get(getCookieName())
|
token = ctx.cookies.get(getCookieName())
|
||||||
authType = AuthTypes.BUILDER
|
authType = AuthTypes.BUILDER
|
||||||
} else if (appId) {
|
}
|
||||||
|
if (!token && appId) {
|
||||||
token = ctx.cookies.get(getCookieName(appId))
|
token = ctx.cookies.get(getCookieName(appId))
|
||||||
authType = AuthTypes.APP
|
authType = AuthTypes.APP
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue