mirror of
https://github.com/better-auth/better-auth.git
synced 2026-06-02 12:26:43 -05:00
chore: move headers retriver in create session
This commit is contained in:
@@ -213,10 +213,7 @@ export const createInternalAdapter = (
|
||||
override?: Partial<Session> & Record<string, any>,
|
||||
overrideAll?: boolean,
|
||||
) => {
|
||||
const headers =
|
||||
ctx.request && "headers" in ctx.request
|
||||
? ctx.request.headers
|
||||
: ctx.request;
|
||||
const headers = ctx.headers || ctx.request?.headers;
|
||||
const { id: _, ...rest } = override || {};
|
||||
const data: Omit<Session, "id"> = {
|
||||
ipAddress:
|
||||
|
||||
Reference in New Issue
Block a user