Skip to content

Commit

Permalink
Merge pull request #159 from balena-io/update-pinejs-usage
Browse files Browse the repository at this point in the history
Update pinejs usage
  • Loading branch information
Page- authored Oct 18, 2024
2 parents be0847a + b91a728 commit 36f24e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func newAuthHandler(baseURL, apiKey string, verbosity int) authHandler {
}

func (a *authHandler) getUserKeys(username string) ([]gossh.PublicKey, error) {
url := fmt.Sprintf("%s/%s", a.baseURL, "v5")
client := pinejs.NewClient(url, a.apiKey)
url := fmt.Sprintf("%s/%s", a.baseURL, "v7")
client := pinejs.NewClientWithToken(url, a.apiKey)

users := make([]map[string]interface{}, 1)
users[0] = make(map[string]interface{})
Expand Down

0 comments on commit 36f24e7

Please sign in to comment.