Argument `username` is missing when connecting with GitHub Provider

model User {
id String @id
username String
name String
email String
emailVerified Boolean
image String?
createdAt DateTime
updatedAt DateTime
twoFactorEnabled Boolean?
Session Session[]
Account Account[]
Passkey Passkey[]
TwoFactor TwoFactor[]
Invitation Invitation[]

@@unique([email])
@@map("user")
}
model User {
id String @id
username String
name String
email String
emailVerified Boolean
image String?
createdAt DateTime
updatedAt DateTime
twoFactorEnabled Boolean?
Session Session[]
Account Account[]
Passkey Passkey[]
TwoFactor TwoFactor[]
Invitation Invitation[]

@@unique([email])
@@map("user")
}
No description
No description
No description
4 Replies
bekacru
bekacru5mo ago
you shouldn't make username a required field on your database
Gaetan H
Gaetan HOP5mo ago
Okay okay ! However, it is also required when generating the schema with the BetterAuth CLI.
bekacru
bekacru5mo ago
That's a bug from the plugin I think. Should be fixed on the next release.
Gaetan H
Gaetan HOP5mo ago
:blobgun:

Did you find this page helpful?