Fork me on GitHub
#architecture
<
2020-02-05
>
robertfw00:02:22

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

☝️ 4
robertfw00:02:32

and then can automatically retry the request

robertfw00:02:31

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

robertfw00:02:54

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

mathpunk17:02:32

very cool, thank you for the input!