mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-15 22:12:25 -06:00
feat: discord oauth provider, setup provider list route, add 'active' method, common type alias
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user