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

@@ -18,6 +18,9 @@ pub struct AuthUser {
pub trait OAuthProvider: Send + Sync {
fn id(&self) -> &'static str;
fn label(&self) -> &'static str;
fn active(&self) -> bool {
true
}
async fn authorize(&self) -> axum::response::Response;