thingsboard / flutter_thingsboard_app

ThingsBoard Mobile Application
https://thingsboard.io/products/mobile/
BSD 3-Clause "New" or "Revised" License
207 stars 153 forks source link

2FA and notifications broken #92

Closed Philip2809 closed 4 weeks ago

Philip2809 commented 4 weeks ago

If you have 2FA enabled and login to newest version on app, tried on (thingsboard demo app), you will get a 403 when the app is trying to setup notifications, this gives a red banner at bottom saying "You don't have permission to preform this operation!". This is because when you have 2FA you only have access to 2FA endpoint to put in the code before you get your full jwt access token, but the app tries to setup notifications before the 2FA auth is completed.

ybeshkarov commented 4 weeks ago

Duplicate https://github.com/thingsboard/flutter_thingsboard_app/issues/25

Philip2809 commented 4 weeks ago

Its not really a duplicate @ybeshkarov, last problem was before the notification update, and that was stating problems with logging in, this however, you can login but not all functions will work!

ybeshkarov commented 4 weeks ago

Hello @Philip2809,

I've considered it as a duplicate because it's a login issue when 2FA is enabled. The behavior has changed, but the issue was. But anyway thanks for your reporting. This will be fixed in the 1.2.0 release soon.

Philip2809 commented 4 weeks ago

Awesome, is 1.2.0 coming with 3.7? Any planned date for release?

ybeshkarov commented 4 weeks ago

Correct. About the planned date not sure but must be soon.