Ruby: omniauth-blockstack -- Error: Unhandled Promise Rejection: Token must be signed in order to be verified

I am trying to implement the Blockstack authentication process via implementing https://github.com/blockstack/omniauth-blockstack and using the Blockstack Gem https://github.com/blockstack/blockstack-ruby

On localhost when I click the SignIn button, Blockstack opens and after choosing the “Sign In With Blockstack Web App” option, I get stuck with a Sign In Request screen “Loading app details…”.

Error in console shows:
[Error] Unhandled Promise Rejection: Token must be signed in order to be verified
(anonymous function)
promiseReactionJob

Any idea where I made my newbie mistake? An issue with the manifest.json file?

Thanks a lot for helping out!

It sounds like what would happen in versions of omniauth-blockstack older than 0.10.5 - the 0.10.6 update should have fixed that error. Can you doublecheck which version of the gem you’re using? If you’re using 0.10.6, please open a github issue on omniauth-blockstack!

Thanks so much @larry for looking into this :pray:
0.10.6 … that’s interesting, cause I didn’t specify the version number in the Gem file, and simply did a bundle install in the believe it will install the latest version.
It turns out it installed per default omniauth-blockstack (0.9.0) … and I was not aware of what the latest version of the gem was.

I now tried to specify the gem version and got this dependence error:

Bundler could not find compatible versions for gem "blockstack":
  In snapshot (Gemfile.lock):
    blockstack (= 0.6.0)

  In Gemfile:
    blockstack

    omniauth-blockstack (~> 0.10.6) was resolved to 0.10.6, which depends on
      blockstack (= 0.5.9)

Can I go back to Blockstack-ruby 0.5.9 or does this bring other known issues?

Update: Going back to 0.5.9 for Blockstack-ruby seems to work.
Now wondering if that’s a good idea …

It should be okay - I started updating omniauth-blockstack and blockstack-ruby a couple days ago and will have updated versions for you soon.

1 Like

I pushed new version of omniauth-blockstack (11.0.0) and blockstack-ruby (8.0.0). Give them a try and let me know if you have any issues!

Larry, thanks so much! Seems to work :pray:

1 Like