chore: update admin apis

This commit is contained in:
Krispire Admin
2026-06-16 16:25:44 +05:30
parent 04ad94ad3c
commit 1cde0c0544
3 changed files with 18 additions and 8 deletions
+5
View File
@@ -19,6 +19,11 @@ type AdminUser struct {
BannedAt *time.Time `json:"banned_at"`
PostCount int `json:"post_count"`
CreatedAt time.Time `json:"created_at"`
// Connected auth methods. HasPassword means email+password login is set up;
// Providers lists linked OAuth providers (e.g. "google", "facebook").
HasPassword bool `json:"has_password"`
Providers []string `json:"providers"`
}
// AdminPost is a row in the admin posts table.