Flow doesn't set session variables

Hi,
I have created a login page to authenticate with my website (wordpress) via an API post.

I have used a flow so that I can set some session variables that will allow other pages to use the returned token but the I can’t get the flow steps to add the token to the session storage (and later to check for an error and display it).

The flow correctly gets the token (Chrome dev tools network shows a token is returned) but the flow stops at the set session stage (the test prompt does not appear).

Here is my flow (connected to a button) in the form:

I used the steps in this post - Are AC flows compatible with form submits? - to get the flow to trigger on the button click.

Any ideas on what I am doing wrong?

Thanks.

More info.

No matter what I do flows will not set local or session storage manager items.

I can do it using the dynamic events but not with a flow.

Is this a bug or a problem my end?

Wappler froze then crashed. After restarting I get a strange error:

parser.js:390 Error: Unexpected token, expecting [R_PAREN] in expression [local1.set(‘token1’,form1.data.token);local1.set(‘userID1’,form1.data.user_ID);local1.set(‘email1’,form1.checkbox.checked.then(form1.username.value, ‘""’);local1.set(‘password1’,form1.checkbox.checked.then(form1.loginpassword.value, ‘""’);app.f7view.navigate(’/’,{})]
at l (parser.js:430)
at b (parser.js:699)
at e (parser.js:673)
at y (parser.js:607)
at g (parser.js:586)
at x (parser.js:576)
at parser.js:566
at v (parser.js:554)
at t (parser.js:544)
at m (parser.js:534)

Anyone seen this before?