- Add EmailTokenService for handling email verification and password reset tokens. - Create EmailService for sending verification and reset emails via SMTP. - Update AuthService to handle email verification status during login. - Modify user registration to redirect to a check email screen instead of issuing a token. - Implement resend verification email functionality. - Add deep link handling for email verification and password reset in the mobile app. - Update mobile app routes and components to support new email verification flow. - Enhance error handling for unverified emails during login attempts. - Update configuration to include SMTP settings for email service.
77 lines
1.5 KiB
TOML
77 lines
1.5 KiB
TOML
[package]
|
|
name = "meowspool-backend"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[[bin]]
|
|
name = "meowspool"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# HTTP Framework
|
|
axum = { version = "0.7", features = ["macros"] }
|
|
tower = "0.4"
|
|
tower-http = { version = "0.5", features = ["cors", "trace"] }
|
|
|
|
# Async Runtime
|
|
tokio = { version = "1", features = ["full"] }
|
|
|
|
# Database
|
|
sqlx = { version = "0.8", features = [
|
|
"runtime-tokio-rustls",
|
|
"postgres",
|
|
"uuid",
|
|
"time",
|
|
"macros",
|
|
] }
|
|
|
|
# Auth
|
|
jsonwebtoken = "9"
|
|
argon2 = "0.5"
|
|
oauth2 = "4"
|
|
|
|
# Serialization
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
|
|
# UUID
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
|
|
# Time
|
|
time = { version = "0.3", features = ["serde", "serde-well-known"] }
|
|
|
|
# Errors
|
|
thiserror = "1"
|
|
anyhow = "1"
|
|
|
|
# Validation
|
|
validator = { version = "0.18", features = ["derive"] }
|
|
|
|
# Env vars
|
|
dotenvy = "0.15"
|
|
|
|
# Logging / Tracing
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
# HTTP Client (OAuth, Google APIs)
|
|
reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false }
|
|
|
|
# QR Code generation
|
|
qrcode = "0.14"
|
|
image = "0.25"
|
|
base64 = "0.22"
|
|
|
|
# PDF generation
|
|
printpdf = "0.7"
|
|
|
|
# Email (SMTP)
|
|
lettre = { version = "0.11", features = ["smtp-transport", "tokio1-rustls-tls", "builder"], default-features = false }
|
|
|
|
# Async trait
|
|
async-trait = "0.1"
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["full"] }
|
|
axum-test = "15"
|