We have a local secrets manager running, and I can access it fine with the CLI but cannot using the Bitwarden.Sdk package. The code seems very simple yet I’m getting an “invalid_client” error when trying to authenticate using the ‘AccessTokenLogin’ method. Code is below, pulled directly from the GitHub C# example:
// Create SDK Client
BitwardenSettings settings = new BitwardenSettings();
settings.ApiUrl = "our url";
using var bitwardenClient = new BitwardenClient(settings);
// Authenticate
bitwardenClient.AccessTokenLogin(accessToken);