You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTPAuthentication.getUser has a callback parameter with the signature callback: (error: Error, user?: webdav.IUser) => void. In typescript, it's not possible to call this method without supplying an Error, which in turn seems to signal that the request is not authenticated.
Should this signature be updated to callback: (error?: Error | null, user?: webdav.IUser) => void?
And if not, how do we call the callback to indicate that the request is authenticated?
The text was updated successfully, but these errors were encountered:
Note that I'm able to work around this with the comment // @ts-ignore: ts(2345) before calling the callback with a null Error ... but this shouldn't be necessary.
HTTPAuthentication.getUser
has acallback
parameter with the signaturecallback: (error: Error, user?: webdav.IUser) => void
. In typescript, it's not possible to call this method without supplying anError
, which in turn seems to signal that the request is not authenticated.Should this signature be updated to
callback: (error?: Error | null, user?: webdav.IUser) => void
?And if not, how do we call the callback to indicate that the request is authenticated?
The text was updated successfully, but these errors were encountered: