Skip to content

Commit

Permalink
change device type for SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlaverse committed Oct 6, 2024
1 parent b63ff64 commit 40bd832
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/bitwarden/webapi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ type Client interface {
func NewClient(serverURL string, opts ...Options) Client {
c := &client{
deviceName: deviceName,
deviceType: "10",

// Official Device List: https://github.com/bitwarden/server/blob/main/src/Core/Enums/DeviceType.cs
deviceType: "21", // SDK
serverURL: strings.TrimSuffix(serverURL, "/"),
httpClient: retryablehttp.NewClient(),
}
Expand Down

0 comments on commit 40bd832

Please sign in to comment.