Replies: 5 comments
-
|
Are you sure this should be executed on the client? |
Beta Was this translation helpful? Give feedback.
-
|
Well, I'm actually not sure! What I am trying to do is to fetch the user session information from the app Im embedding botpress in so that the user does not have to login twice. This is the first time I attempt this and did some research online. Some ppl say you can using the above method which actually retrieve session username but I have no idea how to capture it in Botpress. So if I followed the above implementation I get the username printed in console, but then I fail to get it in botpress for further utilization. |
Beta Was this translation helpful? Give feedback.
-
|
Is ASP.NET transpiling your JS-code? Not sure how this would work otherwise. The bot on top of botpress runs as a separate node-app, so no magic like this would occur inside it's pages. |
Beta Was this translation helpful? Give feedback.
-
|
I like how you described it as "Magic" Lol 😁! Thanks for the advice, will try this and let you know if it works or how I ended up solving it. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey pps! I am using botpress as embbedded widget in an ASP.NET app. Im trying to capture the logged in username from ASP.NET app. What I found on Github was to capture username Is to hold the username inside a variable on the page calling the script file. Like this:
Then refrence the variable in my JS:
....&loginAs='+ usrName + '&packageId=' + name;But im getting ReferenceError: usrName is not defined. How can I do this? Thanks for the help in advance!
Beta Was this translation helpful? Give feedback.
All reactions