(ctx: RouterContext)
| 11 | import InstanceSubsystem from "../service/system_instance"; |
| 12 | |
| 13 | function checkStreamLogin(ctx: RouterContext) { |
| 14 | return ( |
| 15 | ctx.session.stream && |
| 16 | ctx.session?.stream?.check === true && |
| 17 | ctx.session.type === LOGIN_FROM_STREAM |
| 18 | ); |
| 19 | } |
| 20 | |
| 21 | // Authorization authentication middleware |
| 22 | routerApp.use(async (routePath, ctx, data, next) => { |