This method is rather antiquated ( I have learned) And can be easily achieved just using a actual user-management interface in Flask, to authenticate the user. And then using WebAssembly to offload the actual running of the on the task to users machine. I have still not perfected my overall goal with this, but I have learned, at least, the above question is not the way.
Thanks to all for helping with this!