Skip to content

Commit 4415544

Browse files
committed
fix: User type error
1 parent 2dce2e6 commit 4415544

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export type AuthServiceAuthorise<
159159
AuthUser extends StoryBookerUser = StoryBookerUser,
160160
> = (
161161
permission: PermissionWithKey,
162-
options: { request: Request; user: AuthUser | undefined },
162+
options: { request: Request; user: AuthUser | undefined | null },
163163
) => Promise<boolean | Response> | boolean | Response;
164164

165165
/** Type of permission to check */

packages/core/src/utils/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface Store {
2222
request: Request;
2323
headless: boolean;
2424
url: string;
25-
user?: StoryBookerUser;
25+
user: StoryBookerUser | null | undefined;
2626
}
2727

2828
export const localStore = new AsyncLocalStorage<Store>();

0 commit comments

Comments
 (0)