MCPcopy Index your code
hub / github.com/gitify-app/gitify / hasRequiredScopes

Function hasRequiredScopes

src/renderer/utils/auth/scopes.ts:10–14  ·  view source on GitHub ↗
(account: Account)

Source from the content-addressed store, hash-verified

8 * @param account - The account whose scopes to check.
9 */
10export 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.

Callers 3

scopes.test.tsFile · 0.90
refreshAccountFunction · 0.90
AccountScopesRouteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected