In the documentation, there is a large, bright red warning:
Never use API flows to implement Browser applications! Using API flows in Single-Page-
Never use API flows to implement Browser applications!
Using API flows in Single-Page-