test(relay): put the authConfig SAFETY: directive on the line oxlint flags

The diagnostic points at the property that opens the object literal, not at the
`} as OrcaCloudAuthConfig` that closes it.
This commit is contained in:
Neil
2026-09-16 23:57:37 -07:00
parent 5f99200fd3
commit b3783ad3e6
@@ -58,10 +58,10 @@ function brokerOptions(
): Parameters<typeof RelaySessionBroker.connect>[0] {
const keypair = nacl.box.keyPair()
return {
// oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: RelaySessionBroker.connect reads only these two endpoints off authConfig; the rest of the profile config is never reached.
authConfig: {
relayTokenEndpoint: 'https://auth.example.test/v1/relay-token',
relayDirectorUrl: 'https://relay.example.test'
// oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: RelaySessionBroker.connect reads only these two endpoints off authConfig; the rest of the profile config is never reached.
} as OrcaCloudAuthConfig,
accessToken: 'access-token',
identity: { userId: 'user-1', profileId: 'profile-1', organizationId: 'org-1' },