feat: discord oauth provider, setup provider list route, add 'active' method, common type alias

This commit is contained in:
Ryan Walters
2025-09-17 09:23:31 -05:00
parent 8e23fb66a4
commit ac1417aabc
6 changed files with 244 additions and 8 deletions

View File

@@ -39,6 +39,7 @@ async fn main() {
let app = Router::new()
.route("/", get(|| async { "Hello, World! Visit /auth/github to start OAuth flow." }))
.route("/auth/providers", get(routes::list_providers_handler))
.route("/auth/{provider}", get(routes::oauth_authorize_handler))
.route("/auth/{provider}/callback", get(routes::oauth_callback_handler))
.route("/logout", get(routes::logout_handler))