add guild sql, move things around for req body
All checks were successful
Code quality checks / biome (push) Successful in 9s

This commit is contained in:
creations 2025-06-18 17:45:30 -04:00
parent 33a602cdd0
commit ca0410f7fb
Signed by: creations
GPG key ID: 8F553AA4320FC711
30 changed files with 332 additions and 183 deletions

View file

@ -2,9 +2,10 @@ import { environment } from "#environment/config";
import { jwt } from "#environment/jwt";
import type { CookieOptions } from "#types/config";
import type { ExtendedRequest } from "#types/server";
class CookieService {
extractToken(request: Request): string | null {
extractToken(request: Request | ExtendedRequest): string | null {
return request.headers.get("Cookie")?.match(/session=([^;]+)/)?.[1] || null;
}