You are viewing a single comment's thread from:

RE: Hivesigner UI: 1-click login

in HiveDevs4 years ago (edited)

at /api/me, I get

error   "invalid_grant"
error_description   "The token has invalid role"

I tried looking into source code, but how do I use req.role? Should I send token in url query?

Sort:  

Try js sdk. client.me uses that endpoint, you will have to setAccessToken before calling client.me. Read here: https://github.com/ledgerconnect/hivesigner.js#get-user-profile