mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-11 06:30:21 +00:00
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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user