diff --git a/packages/phase2cli/src/lib/utils.ts b/packages/phase2cli/src/lib/utils.ts index 84476d1d..83d3763c 100644 --- a/packages/phase2cli/src/lib/utils.ts +++ b/packages/phase2cli/src/lib/utils.ts @@ -160,7 +160,7 @@ export const getUserHandleFromProviderUserId = (providerUserId: string): string return providerUserId } - return providerUserId.split("-")[0] + return providerUserId.substring(0, providerUserId.lastIndexOf("-")) } /**