(request: Request)
| 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, |
no test coverage detected