Merge fix/session-subject-required: require readSubject on the external session owner
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -52,6 +52,7 @@ function createOwner(
|
||||
): ExternalSessionOwner {
|
||||
return {
|
||||
readState: () => "authenticated",
|
||||
readSubject: () => "user-a",
|
||||
subscribe: () => () => {},
|
||||
beginSignIn: async () => {},
|
||||
signOut: async () => {},
|
||||
|
||||
@@ -78,6 +78,7 @@ describe("shared HTTP client", () => {
|
||||
clock,
|
||||
authSession: {
|
||||
getState: () => "authenticated",
|
||||
getSubject: () => "user-a",
|
||||
subscribe: () => () => {},
|
||||
beginSignIn: async () => {},
|
||||
signOut: async () => {},
|
||||
@@ -125,6 +126,7 @@ describe("shared HTTP client", () => {
|
||||
clock: { now: () => 0, sleep: async () => {} },
|
||||
authSession: {
|
||||
getState: () => "authenticated",
|
||||
getSubject: () => "user-a",
|
||||
subscribe: () => () => {},
|
||||
beginSignIn: async () => {},
|
||||
signOut: async () => {},
|
||||
|
||||
Reference in New Issue
Block a user