pub fn auth_router() -> Router<AppState>Expand description
Returns a single router containing all atrg built-in auth routes:
/auth/*, /client-metadata.json, and /.well-known/oauth-protected-resource.
This is the recommended way to wire auth into atrg_core::AtrgApp:
use atrg_core::AtrgApp;
AtrgApp::new()
.with_auth_routes(atrg_auth::routes::auth_router())
.with_cleanup_task(atrg_auth::routes::spawn_cleanup_task)
.run();