user_data

Contains the user information for two-factor authentication. This table is not used for multi-user.

Relevant files:

  • apps/server/src/services/encryption/open_id_encryption.ts
Column NameData TypeNullityDefault valueDescription
tmpIDIntegerA sequential ID of the user. Since only one user is supported by Trilium, this value is always zero.
usernameTextThe user name as returned from the OAuth operation.
emailTextThe email as returned from the OAuth operation.
userIDEncryptedDataKeyTextAn encrypted hash of the user subject identifier from the OAuth operation.
userIDVerificationHashTextA salted hash of the subject identifier from the OAuth operation.
saltTextThe verification salt.
derivedKeyTextA random secure token.
isSetupText"false"Indicates that the user has been saved ("true").