Where this should be done? In the main? If possible I'd prefer to delay it because my main is web-agnotic.
Where should I store those two values? Should I put them in my monad stack (I have a StateT)?
Is the routeAuthenticate really necessary? It looks a bit cumbersome to carry it around everywhere in the states.
Thanks,
Corentin