fix(oauth): align custom binding response fields in frontend (#6818)

* fix(oauth): align custom binding response fields in frontend

* fix(oauth): restore custom access policy guidance
This commit is contained in:
Seefs
2026-08-15 13:56:06 +08:00
committed by GitHub
parent 4442bb3028
commit 116255f076
14 changed files with 216 additions and 45 deletions
+14
View File
@@ -20,6 +20,20 @@ For commercial licensing, please contact support@quantumnous.com
// OAuth URL Builders
// ============================================================================
export interface CustomOAuthBinding {
provider_id: number
provider_name: string
provider_slug: string
provider_icon: string
provider_user_id: string
}
export function indexCustomOAuthBindings(
bindings: CustomOAuthBinding[]
): Map<number, CustomOAuthBinding> {
return new Map(bindings.map((binding) => [binding.provider_id, binding]))
}
/**
* Build GitHub OAuth URL
*/