Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/discovery-exclude-react-sdk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@onflow/fcl-core": patch
"@onflow/fcl": patch
"@onflow/react-sdk": patch
---

Add support for `discoveryAuthnExclude` configuration option in React SDK. This allows users to exclude specific wallet providers from the discovery service, complementing the existing `discoveryAuthnInclude` option.

1 change: 1 addition & 0 deletions packages/fcl-core/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface FlowClientCoreConfig {
discoveryWalletMethod?: string
discoveryAuthnEndpoint?: string
discoveryAuthnInclude?: string[]
discoveryAuthnExclude?: string[]

// Compute limit for transactions
computeLimit: number
Expand Down
2 changes: 2 additions & 0 deletions packages/fcl-core/src/context/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ interface FCLConfig {
discoveryWalletMethod?: string
discoveryAuthnEndpoint?: string
discoveryAuthnInclude?: string[]
discoveryAuthnExclude?: string[]
flowNetwork?: string
storage: StorageProvider
discovery?: {
Expand Down Expand Up @@ -123,6 +124,7 @@ export function createConfigService(config: FCLConfig): ConfigService {
["discovery.wallet.method", config.discoveryWalletMethod],
["discovery.authn.endpoint", config.discoveryAuthnEndpoint],
["discovery.authn.include", config.discoveryAuthnInclude],
["discovery.authn.exclude", config.discoveryAuthnExclude],
["flow.network", config.flowNetwork],
["accessNode.api", config.accessNodeUrl],
["fcl.limit", config.computeLimit],
Expand Down
2 changes: 2 additions & 0 deletions packages/fcl/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export interface FlowClientConfig {
discoveryWalletMethod?: string
discoveryAuthnEndpoint?: string
discoveryAuthnInclude?: string[]
discoveryAuthnExclude?: string[]

// WalletConnect configuration
walletconnectProjectId?: string
Expand Down Expand Up @@ -145,6 +146,7 @@ export function createFlowClient(params: FlowClientConfig) {
discoveryWalletMethod: params.discoveryWalletMethod || "IFRAME/RPC",
discoveryAuthnEndpoint: params.discoveryAuthnEndpoint,
discoveryAuthnInclude: params.discoveryAuthnInclude,
discoveryAuthnExclude: params.discoveryAuthnExclude,
customResolver: params.customResolver,
customDecoders: params.customDecoders,
discoveryWallet: params.discoveryWallet,
Expand Down
1 change: 1 addition & 0 deletions packages/react-sdk/src/core/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type FlowConfig = {
discoveryAuthnEndpoint?: string
computeLimit?: number
discoveryAuthnInclude?: string[]
discoveryAuthnExclude?: string[]
flowNetwork?: FlowNetwork
serviceOpenIdScopes?: string[]
walletconnectProjectId?: string
Expand Down
1 change: 1 addition & 0 deletions packages/react-sdk/src/provider/FlowProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function FlowProvider({
discoveryWalletMethod: initialConfig.discoveryWalletMethod,
discoveryAuthnEndpoint: initialConfig.discoveryAuthnEndpoint,
discoveryAuthnInclude: initialConfig.discoveryAuthnInclude,
discoveryAuthnExclude: initialConfig.discoveryAuthnExclude,
flowJson: flowJson,
flowNetwork: initialConfig.flowNetwork,
computeLimit: initialConfig.computeLimit,
Expand Down