这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ZIMkaRU
Copy link
Member

@ZIMkaRU ZIMkaRU commented Feb 20, 2024

This PR adds detection for BFX auth error


There can be cases with getting ERR_AUTH_API: ERR_TOKEN_ALREADY_USED error from the BFX API side
We have several issues with the same error:

It should be detected as an auth error and processed with 401 instead 500 at least do not show a bug report modal window in the electron app. And these changes are enough to cover it


On the other hand, the mentioned issue related to 2fa:

  • when need to set google auth code
  • UI doesn't block btn after the first push
  • and the user can make 2 requests accidentally
  • and for auth token generation will be used otp token 2 times
  • as a result ERR_AUTH_API: ERR_TOKEN_ALREADY_USED error

Copy link
Contributor

@ezewer ezewer left a comment

Choose a reason for hiding this comment

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

looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants