You are viewing a single comment's thread from:
RE: Peer Query Documentation: How the SC2 login system works
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.
Oh great! That surely makes the work easier. I will soon update Peer Query to it, thanks!