Migrated JWT authentication from localStorage to httpOnly cookies using axum-extra. Refactored vendor listing and edit pages to use the centralized API client. Updated schema and data models to support these changes.
22 lines
702 B
TOML
Executable File
22 lines
702 B
TOML
Executable File
[package]
|
|
name = "api_rust"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
axum = { version = "0.6.20", features = ["headers"] }
|
|
tokio = { version = "1.35.1", features = ["full"] }
|
|
sqlx = { version = "0.6", features = ["runtime-tokio-rustls", "postgres", "chrono"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
jsonwebtoken = "8.1"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
dotenv = "0.15"
|
|
tower-http = { version = "0.4", features = ["cors"] }
|
|
argon2 = { version = "0.5.3", features = ["std"] }
|
|
hyper = "0.14"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
axum-extra = { version = "0.7", features = ["cookie"] }
|
|
time = "0.3"
|