Magic-link sign in UI and APIs
This commit is contained in:
1 parent
331ed40234
commit
7218947df3
74 files changed
+1582
-363
No files matched your search
@@ -29,12 +29,12 @@ model Session {
|
||||
@@index([userId])
|
||||
}
|
||||
|
||||
model OtpChallenge {
|
||||
model MagicLinkToken {
|
||||
id String @id @default(cuid())
|
||||
email String
|
||||
codeHash String
|
||||
tokenHash String @unique
|
||||
expiresAt DateTime
|
||||
attempts Int @default(0)
|
||||
nextPath String?
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
@@index([email])
|
||||
|
||||
Reference in new issue
Block a user