sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Expired access token returns invalid_client error

Open sunarch opened this issue 1 year ago • 0 comments

Steps To Reproduce

  1. Set up a Secrets Manager access token and wait until it expires.
  2. Send an authentication request using the SDK.
  3. Receive authentication error.

Expected Result

Some more informative error message would be useful, like the one when the access token is not present or has an invalid value. I realize that a more specific message for this situation could be undesirable, but a generic one, e.g. "unauthorized", could help to determine where to look for the error, i.e. in the credentials and not the client/SDK code.

Actual Result

The authentication returns an error message with bad request, error: invalid_client

Screenshots or Videos

No response

Additional Context

No response

Operating System

Linux

Operating System Version

No response

Build Version

1.0.0

Issue Tracking Info

  • [X] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

sunarch avatar Oct 30 '24 15:10 sunarch