Hello,
In the documentation for BlockStack connect, it says that authOptions should create a userSession object (named userSession) if it is not passed in through the constructor:
userSession
: (optional) - pass aUserSession
instance to use for authentication. If it’s not passed,@blockstack/connect
will create one for you.
However when I try to reference userSession later in my code, I am getting a “Uncaught ReferenceError: userSession is not defined”.
We do call “blockstackConnect.showBlockstackConnect(authOptions);” so this should implicitly call the authenticate method of userSession.
Is there another way that I should be referring to the userSession variable that is allegedly created?