MCPcopy Create free account
hub / github.com/CapSoftware/Cap / getProvisionedUserName

Function getProvisionedUserName

packages/database/auth/drizzle-adapter.ts:23–30  ·  view source on GitHub ↗
(email: string)

Source from the content-addressed store, hash-verified

21type UpdateSessionData = Parameters<NonNullable<Adapter["updateSession"]>>[0];
22
23function getProvisionedUserName(email: string) {
24 return (
25 email
26 .split("@")[0]
27 ?.replace(/[._-]+/g, " ")
28 .trim() || email
29 );
30}
31
32async function hasPendingProvisionedInvite(
33 db: MySql2Database,

Callers 1

createUserFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected