chain-client-sdk-dart/lib
flemming-it 549f9df5c6
Some checks failed
Security / Security check (push) Failing after 1s
feat(client): authToken parameter for Bearer auth
`HubClient` accepts an optional `authToken: String?` that
attaches `authorization: Bearer <token>` to every gRPC + gRPC-
Web call as default CallOptions metadata.

Operators with `auth.tokens:` configured on the hub now have
a one-line client-side wire-up:

  final client = HubClient(
    endpoint: HubEndpoint(host: '...', port: 50051),
    authToken: 'secret-from-1password-or-vault',
  );

Without `authToken`, calls go unauthenticated — the hub
either accepts (anonymous mode) or rejects with
`UNAUTHENTICATED` (16) when auth is required.

dart analyze + dart test green (4 tests).

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
2026-05-28 16:37:08 +02:00
..
src feat(client): authToken parameter for Bearer auth 2026-05-28 16:37:08 +02:00
fai_client_sdk.dart chore: rename package + dir + repo to fai_client_sdk 2026-05-26 13:46:16 +02:00