Closed Yopadd closed 1 year ago
But maybe it's voluntary to not revealed the root cause for security reason :thinking:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I started to implement basic auth in my app. I followed all steps:
await auth.use('basic').authenticate()
in my route.the error returned is
Invalid basic auth credentials
with code http401
. But the root cause isError: connect ECONNREFUSED 127.0.0.1:5432
To reproduce :
The cause seems the try/catch here :
https://github.com/adonisjs/auth/blob/49228c5b619ba76362ad8ccb2afc9e2f65e83104/src/Guards/BasicAuth/index.ts#L117
I didn't push a PR because I don't know how you want handle this error type.