1
0
Fork 0
mirror of synced 2024-06-30 03:50:37 +12:00

Fixing a bug found by tests in auth.

This commit is contained in:
mike12345567 2021-01-29 13:14:36 +00:00
parent 4a8de4c7d4
commit 918a95071d

View file

@ -29,7 +29,8 @@ module.exports = async (ctx, next) => {
if (!isClient(ctx)) {
token = ctx.cookies.get(getCookieName())
authType = AuthTypes.BUILDER
} else if (appId) {
}
if (!token && appId) {
token = ctx.cookies.get(getCookieName(appId))
authType = AuthTypes.APP
}