(account: Account)
| 8 | * @param account - The account whose scopes to check. |
| 9 | */ |
| 10 | export function hasRequiredScopes(account: Account): boolean { |
| 11 | return Constants.OAUTH_SCOPES.REQUIRED.every(({ name }) => |
| 12 | (account.scopes ?? []).includes(name), |
| 13 | ); |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Return true if the account has all recommended OAuth scopes. |
no outgoing calls
no test coverage detected