Giter Site home page Giter Site logo

fcl-swift's People

Contributors

boiseitguru avatar jfsagasti avatar lmcmz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fcl-swift's Issues

Call fcl.mutate always fail

Hi,

I just started learning Flow blockchain and building an iOS dApp refer to this article https://dev.to/theagilemonkeys/how-to-buid-a-native-ios-dapp-that-uses-the-flow-blockchain-as-the-backend-n9k

I run FCLDemo(0.0.3) and try to trigger SendTransaction but it always returns the error(decode failed). I debug and found out the error return from AccountsResolver when it tried to call executePost request pre_authz(https://flow-wallet-testnet.blocto.app/api/flow/pre-authz) service API and got the response Invalid domain - HTTP status code: 400

It's happened on both testnet and mainnet (blockto wallet)

The fcl.config is same as what the FCLDemo setup

Send FCL version and language in `authn` request

In the initial authn request to the Wallet, it would be helpful if the fcl version and language were sent to the Wallet, so that the Wallet can return a response appropriate for that version. It is also helpful for logging purposes. In fcl-js, this body is sent in the initial authn request. fcl-swift should send something similar:

{
  "fclVersion": "0.0.78-alpha.10",
  "service": {
    "type": "authn"
  },
  "config": {
    "discoveryAuthnInclude": [],
    "services": {},
    "app": {
      "title": "My awesome app",
      "icon": "http://my.awesome.app/logo.png"
    }
  },
  "timestamp": 1643678060750,
  "appDomainTag": "MyAwesomeApp",
  "extensions": []
}

The fclVersion value could be augmented with the package name, such as @outblock/[email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.