MCPcopy
hub / github.com/louislam/dockge / checkLogin

Function checkLogin

backend/util-server.ts:42–46  ·  view source on GitHub ↗
(socket : DockgeSocket)

Source from the content-addressed store, hash-verified

40}
41
42export function checkLogin(socket : DockgeSocket) {
43 if (!socket.userID) {
44 throw new Error("You are not logged in.");
45 }
46}
47
48export class ValidationError extends Error {
49 constructor(message : string) {

Callers 5

createMethod · 0.90
create2Method · 0.90
createMethod · 0.90
createMethod · 0.90
createMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected