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