Skip to content

fix: will now better log for login problems#2204

Open
bosbaber wants to merge 1 commit into
mainfrom
stephan/int1-655
Open

fix: will now better log for login problems#2204
bosbaber wants to merge 1 commit into
mainfrom
stephan/int1-655

Conversation

@bosbaber

@bosbaber bosbaber commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

At the moment we are only having deafening silence when login fails.

This PR aims to change that.

@bosbaber bosbaber self-assigned this Jun 8, 2026
@bosbaber bosbaber requested a review from Copilot June 8, 2026 21:11
@github-actions github-actions Bot added package: wallet/frontend Wallet frontend implementations package: wallet/backend Wallet backend implementations type: source Source changes labels Jun 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves observability for login and API error scenarios by adding additional logging in the wallet frontend HTTP client error helper and the wallet backend authentication flow.

Changes:

  • Added console.error logging in the wallet frontend getError helper when API requests fail.
  • Added logger.info messages in the wallet backend AuthService.authorize method for rejected login cases.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
packages/wallet/frontend/src/lib/httpClient.ts Adds client/server-side error logs for failed HTTP requests and unexpected error response shapes.
packages/wallet/backend/src/auth/service.ts Logs the reason for rejected login attempts during authorization.

Comment on lines +80 to +82
console.error(
`[httpClient] ${e.request.method} ${e.response.status} ${e.request.url}: ${response.message}`
)
Comment on lines +85 to +88
console.error(
`[httpClient] ${e.request.method} ${e.response.status} ${e.request.url}: unexpected error shape`,
response
)
Comment on lines +98 to 99
this.logger.info(`Login rejected: no account found for ${args.email}`)
throw new Unauthorized('Invalid credentials.')
Comment on lines +104 to 105
this.logger.info(`Login rejected: invalid password for ${args.email}`)
throw new Unauthorized('Invalid credentials.')
Comment on lines +109 to 110
this.logger.info(`Login rejected: email not verified for ${args.email}`)
throw new NotVerified('Email address is not verified.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: wallet/backend Wallet backend implementations package: wallet/frontend Wallet frontend implementations type: source Source changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants