Skip to content

refactor: rename GatewayConfig.password to credential#18

Merged
BunsDev merged 1 commit intomainfrom
nova/rename-password-to-credential
Mar 13, 2026
Merged

refactor: rename GatewayConfig.password to credential#18
BunsDev merged 1 commit intomainfrom
nova/rename-password-to-credential

Conversation

@BunsDev
Copy link
Contributor

@BunsDev BunsDev commented Mar 12, 2026

Summary

Renames GatewayConfig.passwordGatewayConfig.credential across Rust and TypeScript since the field may hold a token or password depending on gateway auth mode.

Changes

  • src-tauri/src/engine.rs — Struct field + local variable renamed
  • context/gateway-context.tsx — All password references in credentials/connect flow renamed to credential

What's NOT renamed

  • makeConnectRequest(password, ...) parameter — this maps directly to auth.password in the wire protocol
  • Wire protocol auth.password field — that's the actual protocol key name
  • Comments referencing password-mode auth

Tests

  • All 32 tests pass (gateway-protocol + gateway-context)
  • TypeScript clean (tsc --noEmit passes)

Follow-up cleanup from #17.

The field may hold a token or password depending on gateway auth mode.
Rename to 'credential' for clarity. Wire protocol auth.password field
is unchanged (that's the actual protocol key name).
@BunsDev BunsDev merged commit 7212e3a into main Mar 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant