mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 12:27:44 +00:00
docs: update two-factor schema to include id field
This commit is contained in:
@@ -353,6 +353,7 @@ Table: `twoFactor`
|
||||
|
||||
<DatabaseTable
|
||||
fields={[
|
||||
{ name: "id", type: "string", description: "The id of the two factor authentication.", isPrimaryKey: true },
|
||||
{ name: "userId", type: "string", description: "The id of the user", isForeignKey: true },
|
||||
{ name: "secret", type: "string", description: "The secret used to generate the TOTP code.", isOptional: true },
|
||||
{ name: "backupCodes", type: "string", description: "The backup codes used to recover access to the account if the user loses access to their phone or email.", isOptional: true },
|
||||
|
||||
Reference in New Issue
Block a user