[package]
edition = "2024"
rust-version = "1.94"
name = "fastauth-plugin-two-factor"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Two-factor authentication for fastauth: TOTP, email codes, backup codes and trusted devices."
readme = "README.md"
keywords = [
"auth",
"authentication",
"axum",
"sqlx",
"session",
]
categories = [
"authentication",
"web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/lassejlv/fastauth"
[lib]
name = "fastauth_plugin_two_factor"
path = "src/lib.rs"
[[test]]
name = "two_factor"
path = "tests/two_factor.rs"
[dependencies.fastauth-core]
version = "0.3.0"
[dependencies.hmac]
version = "0.13.0"
[dependencies.percent-encoding]
version = "2.3.2"
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.154"
[dependencies.sha1]
version = "0.11.0"
[dev-dependencies.bytes]
version = "1.12.2"
[dev-dependencies.http]
version = "1.5.0"
[dev-dependencies.tokio]
version = "1.54.1"
features = [
"macros",
"rt-multi-thread",
"time",
]
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "allow"
unsafe_code = "forbid"