neuron-auth-static
Static auth provider — always returns the same token (dev/test)
Overview
neuron-auth-static provides the simplest possible AuthProvider: it wraps a fixed token
string and returns it on every token() call without any expiry or refresh logic.
Use it for:
- Local development against services that accept a static dev token
- Unit tests that need an
AuthProviderwithout network calls - Prototyping
Do not use in production. Tokens don't rotate and are stored in plaintext.
Usage
[]
= "0.4"
= "0.4"
use StaticAuthProvider;
use AuthProvider;
use Arc;
let auth: = new;
let token = auth.token.await?;
Part of the neuron workspace
neuron is a composable async agentic AI framework for Rust. See the book for architecture and guides.