From zero config to ultra custom
Every knob is optional. Start with nothing, turn dials as your project grows, and drop down to the primitives when you need full control.
Level 0 · Zero config#
Two lines. FastAuth manages a development secret for you (stored in
.fastauth-secret, add it to .gitignore) and cookies work on localhost out of
the box.
Level 1 · Small tweaks#
Adjust behavior with constructor options. Each has a safe default, so change only what you care about:
Level 2 · Your models and routes#
Bring a custom user model, your own session dependency, or mount only the routers you want. See advanced usage for the custom model rules.
Level 3 · Ultra custom#
The building blocks are public. Compose auth.token_manager,
auth.password_manager, auth.authenticate_user(), and RoleManager into any
flow you want; the custom login example shows the pattern.
Everything FastAuth's own routes do, your code can do too.