(account: Account)
| 19 | * @param account - The account whose scopes to check. |
| 20 | */ |
| 21 | export function hasRecommendedScopes(account: Account): boolean { |
| 22 | return Constants.OAUTH_SCOPES.RECOMMENDED.every(({ name }) => |
| 23 | (account.scopes ?? []).includes(name), |
| 24 | ); |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Return true if the account has all alternate OAuth scopes. |
no outgoing calls
no test coverage detected