(email: string)
| 110 | }; |
| 111 | |
| 112 | export const getAccountTypeByEmail = (email: string): AccountType => { |
| 113 | if (email.endsWith(serviceAccountSuffix)) { |
| 114 | return AccountType.SERVICE_ACCOUNT; |
| 115 | } |
| 116 | if (email.endsWith(workloadIdentitySuffix)) { |
| 117 | return AccountType.WORKLOAD_IDENTITY; |
| 118 | } |
| 119 | return AccountType.USER; |
| 120 | }; |
no outgoing calls
no test coverage detected