MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / checkStreamLogin

Function checkStreamLogin

daemon/src/routers/stream_router.ts:13–19  ·  view source on GitHub ↗
(ctx: RouterContext)

Source from the content-addressed store, hash-verified

11import InstanceSubsystem from "../service/system_instance";
12
13function 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
22routerApp.use(async (routePath, ctx, data, next) => {

Callers 1

stream_router.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected