You are viewing a single comment's thread from:

RE: Peer Query Documentation: How the SC2 login system works

in #utopian-io7 years ago

Thank you for documenting this! That's a great post. FYI there is another trick to pass variable on SC login. You can add the parameter state on your login url like https://steemconnect.com/oauth2/authorize?client_id=peerquery.app&redirect_uri=https%3A%2F%2Fwww.peerquery.com%2F&scope=vote,comment,custom_json&state=here_the_variable_you_want, once the user login he will get back to your site with the same parameter state. With this it's easy to redirect user to the page he were before login, this is exactly how we do that in Busy.org. Also you need to use sc2.Initialize( not sc2.init( the last one is depreciated it was used in old version of SteemConnect SDK but not anymore.

Sort:  

Oh great! That surely makes the work easier. I will soon update Peer Query to it, thanks!

Coin Marketplace

STEEM 0.20
TRX 0.24
JST 0.037
BTC 96184.84
ETH 3331.18
USDT 1.00
SBD 3.21