MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / getDataFromRequest

Method getDataFromRequest

lib/models/files.ts:556–568  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

554 }
555
556 static async getDataFromRequest(request: Request): Promise<{ fileShareId: string; hashedPassword: string } | null> {
557 const cookies = getCookies(request.headers);
558
559 if (cookies[COOKIE_NAME]) {
560 const result = await this.getDataFromCookie(cookies[COOKIE_NAME]);
561
562 if (result) {
563 return result;
564 }
565 }
566
567 return null;
568 }
569
570 private static async getDataFromCookie(
571 cookieValue: string,

Callers 4

getFunction · 0.45
postFunction · 0.45
getFunction · 0.45
getFunction · 0.45

Calls 1

getDataFromCookieMethod · 0.95

Tested by

no test coverage detected