Is this pattern okay for jwt auth handling? - SolidJS