From 40bd832004fbdde52d38d19c50857268c0b1e026 Mon Sep 17 00:00:00 2001 From: Maxime Lagresle Date: Wed, 2 Oct 2024 21:01:32 +0200 Subject: [PATCH] change device type for SDK --- internal/bitwarden/webapi/client.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/bitwarden/webapi/client.go b/internal/bitwarden/webapi/client.go index 74774e7..258da18 100644 --- a/internal/bitwarden/webapi/client.go +++ b/internal/bitwarden/webapi/client.go @@ -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(), }