Skip to main content

Module models

Module models 

Source
Expand description

Core tables: user, session, account, verification.

Structsยง

Account
A way to sign in: provider_id = "credential" holds the password hash; OAuth providers hold encrypted tokens.
Session
A row of session. The token itself is never stored, only its SHA-256.
User
The core columns of user. Plugin and app columns live on the same row; read them from AuthUser (typed) or UserView::fields (inside plugins).
Verification
Single-use values: email verification, password reset, OAuth state, OTPs. identifier says what the value is for; only the hash of the value is stored.