node-oauth2-server icon indicating copy to clipboard operation
node-oauth2-server copied to clipboard

Property `inner` missing from `OAuthError` typings

Open papermana opened this issue 3 months ago • 1 comments

Specify your setup

Describe the bug

Documentation says that OAuthError has a property inner. It is set in the code. But TS typings are missing this property.

Looking at the code, there should be inner?: Error.

To Reproduce

Expected behavior

Screenshots

Additional context

papermana avatar Sep 02 '25 09:09 papermana

I think the inner error should be set in the .cause property https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause

wille avatar Nov 14 '25 15:11 wille