Hey! Im trying to send a parameter from my front e...
# ask-a-descoper
o
Hey! Im trying to send a parameter from my front end to my descope flow Im trying to send the env paramater to know if the auth request came from my test/live env I added here the "app_env" parameter to my front end html element like this: <descope-wc id="descope-widget" project-id="XXXXXX" flow-id="sign-up-or-in" theme="light" data-flow-vars='{"app_env":"test"}'> </descope-wc> in descope flow i try to get that parameter like in the image Am i doing anything wrong? been playing around with it for some time now thanks!
r
Hey Omer, our wc does not have data-flow-vars prop, it has form and client as seen here in the wc documentation https://github.com/descope/descope-js/tree/main/packages/sdks/web-component#in-html-file so you can pass it to form and then access it via form.app_env
o
Just what i was looking for - thanks!