fix: Auth0 account creation

Thank me, Associates. ;)
master
Hiroyuki 2021-09-17 23:44:15 +00:00
parent ad6f05409f
commit 1241cfcdb1
1 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ export default class SSS_Create_Account extends Command {
await this.client.util.authClient.createUser({ await this.client.util.authClient.createUser({
email: staff.emailAddress, email: staff.emailAddress,
name: message.author.username, name: message.author.username,
user_id: message.author.id, user_id: `auth0|${message.author.id}`,
connection: 'Staff-Database', connection: 'Staff-Database',
email_verified: true, email_verified: true,
app_metadata: { app_metadata: {
@ -38,7 +38,7 @@ export default class SSS_Create_Account extends Command {
await this.client.util.authClient.createUser({ await this.client.util.authClient.createUser({
email: staff.emailAddress, email: staff.emailAddress,
name: message.author.username, name: message.author.username,
user_id: message.author.id, user_id: `auth0|${message.author.id}`,
connection: 'Staff-Database', connection: 'Staff-Database',
email_verified: true, email_verified: true,
app_metadata: { app_metadata: {
@ -51,7 +51,7 @@ export default class SSS_Create_Account extends Command {
await this.client.util.authClient.createUser({ await this.client.util.authClient.createUser({
email: staff.emailAddress, email: staff.emailAddress,
name: message.author.username, name: message.author.username,
user_id: message.author.id, user_id: `auth0|${message.author.id}`,
connection: 'Staff-Database', connection: 'Staff-Database',
email_verified: true, email_verified: true,
app_metadata: { app_metadata: {
@ -64,7 +64,7 @@ export default class SSS_Create_Account extends Command {
await this.client.util.authClient.createUser({ await this.client.util.authClient.createUser({
email: staff.emailAddress, email: staff.emailAddress,
name: message.author.username, name: message.author.username,
user_id: message.author.id, user_id: `auth0|${message.author.id}`,
connection: 'Staff-Database', connection: 'Staff-Database',
email_verified: true, email_verified: true,
app_metadata: { app_metadata: {
@ -77,7 +77,7 @@ export default class SSS_Create_Account extends Command {
await this.client.util.authClient.createUser({ await this.client.util.authClient.createUser({
email: staff.emailAddress, email: staff.emailAddress,
name: message.author.username, name: message.author.username,
user_id: message.author.id, user_id: `auth0|${message.author.id}`,
connection: 'Staff-Database', connection: 'Staff-Database',
email_verified: true, email_verified: true,
app_metadata: { app_metadata: {
@ -90,7 +90,7 @@ export default class SSS_Create_Account extends Command {
await this.client.util.authClient.createUser({ await this.client.util.authClient.createUser({
email: staff.emailAddress, email: staff.emailAddress,
name: message.author.username, name: message.author.username,
user_id: message.author.id, user_id: `auth0|${message.author.id}`,
connection: 'Staff-Database', connection: 'Staff-Database',
email_verified: true, email_verified: true,
app_metadata: { app_metadata: {