worldwide-asset-exchange / waxjs

Javascript API for integration with the WAX Cloud Wallet.
MIT License
126 stars 103 forks source link

[Bug] signViaEndpoint Don't worked #43

Closed WxSimon closed 2 years ago

WxSimon commented 3 years ago

I use signViaEndpoint for auto sign.

But the http response is :

{"errors":[{"error_type":"Unauthorized","message":"Session token invalid or expired","error_code":"0"}]}
L-WJ1995 commented 3 years ago

Did you solve it?

includenull commented 2 years ago

I believe this is the response from the auto signing endpoint when the dapp url is not whitelisted by the user.

How are you using signViaEndpoint? It should be left up to waxjs to decide if it should be used or not based on the list of whitelisted dapps that it gets from logging the user in.