Skip to content

gl-sdk: Add node_id() getter on Credentials#703

Merged
cdecker merged 1 commit intomainfrom
2026w16-gl-sdk-nodeid
Apr 24, 2026
Merged

gl-sdk: Add node_id() getter on Credentials#703
cdecker merged 1 commit intomainfrom
2026w16-gl-sdk-nodeid

Conversation

@cdecker
Copy link
Copy Markdown
Collaborator

@cdecker cdecker commented Apr 23, 2026

Summary

  • Adds a node_id() getter on gl-sdk's Credentials struct, delegating to the inner gl_client::credentials::Device's NodeIdProvider implementation.
  • Mirrors the existing Signer::node_id() getter so consumers of the UniFFI bindings can retrieve the node id directly from persisted credentials, without spinning up a signer.

Closes #644

Test plan

  • cargo build -p gl-sdk succeeds
  • Verify the method is exposed across UniFFI language bindings (Python/Kotlin/Swift/Ruby) after regenerating

🤖 Generated with Claude Code

Exposes the node_id derived from the device certificate through the
UniFFI boundary, matching the existing Signer::node_id() getter.

Closes #644

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cdecker cdecker merged commit f4af08a into main Apr 24, 2026
16 checks passed
@cdecker cdecker deleted the 2026w16-gl-sdk-nodeid branch April 24, 2026 13:56
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.

sdk: Add method to retrieve node_id from credentials

1 participant