MCPcopy Create free account
hub / github.com/bytebase/bytebase / getAccountTypeByEmail

Function getAccountTypeByEmail

frontend/src/types/v1/user.ts:112–120  ·  view source on GitHub ↗
(email: string)

Source from the content-addressed store, hash-verified

110};
111
112export 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};

Callers 11

detectSpecialAccountFunction · 0.90
loadFunction · 0.90
loadFunction · 0.90
MemberTableFunction · 0.90
MemberTableByRoleFunction · 0.90
handleDeactivateFunction · 0.90
handleRestoreFunction · 0.90
handleViewFunction · 0.90
UserTableFunction · 0.90
ProfilePageFunction · 0.90
getUserFullNameByTypeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected