Skip to content

Commit 0537e63

Browse files
committed
test(stack): use config.authStrategy instead of the deprecated config.strategy
The identity suites passed a federation strategy via `config.strategy`, which logs a deprecation warning ("use config.authStrategy instead"). Switched both to `authStrategy`. Runtime behaviour is unchanged — the client honours both — this just drops the warning from the integration logs. Claude-Session: https://claude.ai/code/session_01MxTTPaPP16m6br7Hoab94w
1 parent 8d707cc commit 0537e63

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/stack/integration/identity/lock-context.integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ beforeAll(async () => {
154154
// `global-setup.ts`.
155155
//
156156
// `create()` returns a `Result` — unwrap to the strategy itself, which is what
157-
// `config.strategy` expects (it calls `.getToken()` on it).
157+
// `config.authStrategy` expects (it calls `.getToken()` on it).
158158
const federation = OidcFederationStrategy.create(crn, clerkJwtProvider())
159159
if (federation.failure) {
160160
throw new Error(`[federation]: ${federation.failure.message}`)
161161
}
162162
client = await EncryptionV3({
163163
schemas: [schema],
164-
config: { strategy: federation.data },
164+
config: { authStrategy: federation.data },
165165
})
166166
ops = createEncryptionOperatorsV3(client)
167167
db = drizzle({ client: sqlClient })

packages/stack/integration/identity/matrix-identity.integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('v3 typed client identity-aware operations (live)', () => {
3232
if (!crn) {
3333
throw new Error('CS_WORKSPACE_CRN must be set for identity tests')
3434
}
35-
// `create()` returns a `Result`; unwrap to the strategy `config.strategy`
35+
// `create()` returns a `Result`; unwrap to the strategy `config.authStrategy`
3636
// expects. `clerkJwtProvider()` asserts CLERK_MACHINE_TOKEN and re-mints on
3737
// every re-federation.
3838
const federation = OidcFederationStrategy.create(crn, clerkJwtProvider())
@@ -41,7 +41,7 @@ describe('v3 typed client identity-aware operations (live)', () => {
4141
}
4242
client = await EncryptionV3({
4343
schemas: [users],
44-
config: { strategy: federation.data },
44+
config: { authStrategy: federation.data },
4545
})
4646
}, 30000)
4747

0 commit comments

Comments
 (0)