Skip to content

Commit 8527424

Browse files
committed
narrow params type for getSession
1 parent d06fcfc commit 8527424

File tree

1 file changed

+3
-3
lines changed
  • packages/auth-solid-start/src/server

1 file changed

+3
-3
lines changed

packages/auth-solid-start/src/server/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -739,13 +739,13 @@ export class SolidServerAuth extends SolidAuthHelpers {
739739

740740
getSession = ({
741741
event,
742-
tokenData,
742+
token,
743743
}: {
744744
event?: HTTPEvent;
745-
tokenData?: TokenData;
745+
token?: string;
746746
} = {}) => {
747747
const authToken =
748-
tokenData?.auth_token ??
748+
token ??
749749
(event
750750
? getCookie(event, this.options.authCookieName)
751751
: getCookie(this.options.authCookieName)) ??

0 commit comments

Comments
 (0)