architecture

robertfw 2020-02-05T00:20:22.029Z

another option, if you wanted to avoid bringing in core.async and more involved state management, would be to store your cookie in a global atom, and just reauth it if one of your requests returns an authentication error

☝️ 1
robertfw 2020-02-05T00:20:32.029300Z

and then can automatically retry the request

robertfw 2020-02-05T00:21:31.029600Z

that's what i'd probably do for simple REPL support

robertfw 2020-02-05T00:21:54.030300Z

the state management, mechanisms for holding requests while you reauth etc would only be once you had something that needed a little more concurrency and resiliancy

mathpunk 2020-02-05T17:28:32.030600Z

very cool, thank you for the input!