( client: AuthenticatedGithubClient, username: string, )
| 11 | |
| 12 | /** Result of checking whether a user is a member of the `googlers` GitHub organization. */ |
| 13 | export interface GooglerOrgVerificationResult { |
| 14 | /** Whether the user was confirmed to be a member of the `googlers` organization. */ |
| 15 | isMember: boolean; |
| 16 | /** |
| 17 | * Whether the authenticated token/account has permission to verify private membership in the |
| 18 | * `googlers` organization (as opposed to being redirected to `/public_members/` or rejected). |
| 19 | */ |
| 20 | canVerifyOrg: boolean; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Verifies whether the authenticated client can check private `googlers` organization membership |
| 25 | * and whether the specified user is a member of the `googlers` organization. |
| 26 | */ |
| 27 | async function verifyGooglerOrgMembership( |
nothing calls this directly
no outgoing calls
no test coverage detected