From 1241cfcdb110d949a4ce797643939c6b4d5cff45 Mon Sep 17 00:00:00 2001 From: Hiroyuki Date: Fri, 17 Sep 2021 23:44:15 +0000 Subject: [PATCH] fix: Auth0 account creation Thank me, Associates. ;) --- src/commands/sss_create_account.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/commands/sss_create_account.ts b/src/commands/sss_create_account.ts index 06b060b..946b9a4 100644 --- a/src/commands/sss_create_account.ts +++ b/src/commands/sss_create_account.ts @@ -25,7 +25,7 @@ export default class SSS_Create_Account extends Command { await this.client.util.authClient.createUser({ email: staff.emailAddress, name: message.author.username, - user_id: message.author.id, + user_id: `auth0|${message.author.id}`, connection: 'Staff-Database', email_verified: true, app_metadata: { @@ -38,7 +38,7 @@ export default class SSS_Create_Account extends Command { await this.client.util.authClient.createUser({ email: staff.emailAddress, name: message.author.username, - user_id: message.author.id, + user_id: `auth0|${message.author.id}`, connection: 'Staff-Database', email_verified: true, app_metadata: { @@ -51,7 +51,7 @@ export default class SSS_Create_Account extends Command { await this.client.util.authClient.createUser({ email: staff.emailAddress, name: message.author.username, - user_id: message.author.id, + user_id: `auth0|${message.author.id}`, connection: 'Staff-Database', email_verified: true, app_metadata: { @@ -64,7 +64,7 @@ export default class SSS_Create_Account extends Command { await this.client.util.authClient.createUser({ email: staff.emailAddress, name: message.author.username, - user_id: message.author.id, + user_id: `auth0|${message.author.id}`, connection: 'Staff-Database', email_verified: true, app_metadata: { @@ -77,7 +77,7 @@ export default class SSS_Create_Account extends Command { await this.client.util.authClient.createUser({ email: staff.emailAddress, name: message.author.username, - user_id: message.author.id, + user_id: `auth0|${message.author.id}`, connection: 'Staff-Database', email_verified: true, app_metadata: { @@ -90,7 +90,7 @@ export default class SSS_Create_Account extends Command { await this.client.util.authClient.createUser({ email: staff.emailAddress, name: message.author.username, - user_id: message.author.id, + user_id: `auth0|${message.author.id}`, connection: 'Staff-Database', email_verified: true, app_metadata: {