mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 16:02:32 +00:00
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:
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user