diff --git a/packages/auth-solid-start/src/server/index.ts b/packages/auth-solid-start/src/server/index.ts index a518c9aa8..f6cb33419 100644 --- a/packages/auth-solid-start/src/server/index.ts +++ b/packages/auth-solid-start/src/server/index.ts @@ -739,13 +739,12 @@ export class SolidServerAuth extends SolidAuthHelpers { getSession = ({ event, - tokenData, + token, }: { event?: HTTPEvent; - tokenData?: TokenData; - } = {}) => { + } & { token?: string } = {}) => { const authToken = - tokenData?.auth_token ?? + token ?? (event ? getCookie(event, this.options.authCookieName) : getCookie(this.options.authCookieName)) ??