feat: add Twitter social login support by updating the auth service and user schema.
This commit is contained in:
@@ -30,6 +30,7 @@ enum AuthProvider {
|
||||
LOCAL
|
||||
GOOGLE
|
||||
FACEBOOK
|
||||
TWITTER
|
||||
}
|
||||
|
||||
// ===========================================
|
||||
@@ -49,6 +50,7 @@ model User {
|
||||
authProvider AuthProvider @default(LOCAL)
|
||||
googleId String? @unique
|
||||
facebookId String? @unique
|
||||
twitterId String? @unique
|
||||
|
||||
// Timestamps
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
Reference in New Issue
Block a user