add guild sql, move things around for req body
All checks were successful
Code quality checks / biome (push) Successful in 9s
All checks were successful
Code quality checks / biome (push) Successful in 9s
This commit is contained in:
parent
33a602cdd0
commit
ca0410f7fb
30 changed files with 332 additions and 183 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue