mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
fix local auth cookie detection
This commit is contained in:
parent
14c4f1076c
commit
81fb87ef59
1 changed files with 1 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ const LOCAL_DEV_HOSTS = new Set(["localhost", "127.0.0.1", "::1"])
|
|||
function getAuthSessionCookie(request: Request): string | null {
|
||||
return (
|
||||
getSessionCookie(request) ??
|
||||
getSessionCookie(request, { cookiePrefix: "better-auth-dev-localhost" }) ??
|
||||
getSessionCookie(request, { cookiePrefix: "better-auth-dev" })
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue