vibe-proxy/backend/sdk/cliproxy/auth/config_apikey.go
2026-08-24 00:10:41 +02:00

12 lines
300 B
Go

package auth
// IsConfigAPIKeyAuth reports whether the auth entry is synthesized from config *-api-key lists.
func IsConfigAPIKeyAuth(auth *Auth) bool {
if auth == nil {
return false
}
if auth.AuthKind() != AuthKindAPIKey {
return false
}
return auth.AuthSourceKind() == AuthSourceConfig
}