-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix incorrect AuthAccessCallback and AuthCallback #374
Conversation
Codecov Report
@@ Coverage Diff @@
## 9.x #374 +/- ##
======================================
Coverage ? 87.87%
======================================
Files ? 5
Lines ? 132
Branches ? 29
======================================
Hits ? 116
Misses ? 8
Partials ? 8
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
type AuthAccessCallback = (error: string | null, access: boolean) => void; | ||
type AuthCallback = (error: string | null, groups: string[] | false) => void; | ||
// FIXME: error should be export type `VerdaccioError = HttpError & { code: number };` instead of AuthError | ||
// but this type is on @verdaccio/commons-api and cannot be used here yet (I don't know why) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's something I regret now. This types and also commons api will be part of the 5.x
so we won't have this issue anymore eventually.
376f25e
to
aaa048a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Great job @frimuchkov !! |
https://github.com/verdaccio/verdaccio/blob/master/src/lib/auth.ts#L264
https://github.com/verdaccio/verdaccio/blob/master/src/lib/auth.ts#L114
Type: bug
Scope: typings