Return username if token matches a trusted device and is approved.
(fp: str, token: str)
| 1396 | |
| 1397 | Internal helper function. |
| 1398 | |
| 1399 | This docstring was added automatically to improve maintainability. |
| 1400 | |
| 1401 | Args: |
| 1402 | exclude: Parameter. |
| 1403 | scope: Parameter. |
| 1404 | |
| 1405 | Returns: |
| 1406 | Varies. |
| 1407 | """ |
| 1408 | sc = scope or "unknown" |
| 1409 | cards, _, _ = user_cards(sc, exclude=exclude) |
| 1410 | return [(c["username"], bool(c["online"])) for c in cards] |
| 1411 | |
| 1412 | # --------------------------- |
| 1413 | # App / helpers |
| 1414 | # --------------------------- |
no test coverage detected