Provisioning key working

Former-commit-id: b43572dd8d
This commit is contained in:
Owen
2026-03-26 17:23:19 -07:00
parent 195fb57f03
commit 1a4cdf7fc3
4 changed files with 159 additions and 5 deletions
+5
View File
@@ -481,6 +481,11 @@ func (c *Client) connectWithRetry() {
func (c *Client) establishConnection() error {
ctx := context.Background()
// Exchange provisioning key for permanent credentials if needed.
if err := c.provisionIfNeeded(); err != nil {
return fmt.Errorf("failed to provision newt credentials: %w", err)
}
// Get token for authentication
token, err := c.getToken()
if err != nil {