Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
@types - AuthCallback: Incorrect definition #1924
Comments
|
Hi @pusherman would you willing to PR a solution? |
|
I checked this in https://github.com/verdaccio/verdaccio/tree/5.x and found to be fixed? Is there any work left on this? Or need to do replicate it in master? Code in 5.x
|
|
@dnafication there is no progress on this yet, I decided to move first all plugins and modules to |
https://github.com/verdaccio/monorepo/blob/9.x/core/types/index.d.ts defines
However, the server seems to be expecting an object when there is an error for the callback, not a string.
When I try to pass an
error: stringthe server throws an error, it seems to be expecting an object. I have to passnullto prevent the server from throwing an error.Example Code
Output from server
npm ERR! Unexpected token u in JSON at position 0 while parsing near 'user not found'