Commit 277bf58
authored
fix: return store error from verifyOTP when OTP is missing in store. (#52)
When OTP record's missing in the store, the UI would end up showing this error message on action `check`:
"Internal error"
"The provider for this OTP was not found."
Now verifyOTP returns a store-level not-found error which is mapped to the webview "Session expired" message.
Added test cases for the same.1 parent 3cfcf35 commit 277bf58
2 files changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
538 | | - | |
539 | | - | |
| 537 | + | |
| 538 | + | |
540 | 539 | | |
541 | | - | |
| 540 | + | |
| 541 | + | |
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
238 | 246 | | |
239 | 247 | | |
240 | 248 | | |
| |||
0 commit comments