When your authentication expires while using the Stitch Function editor, it needs to warn you. Currently you have no way of knowing until you hit "save," which requires you to log back in, but in doing so, it treats it as a "navigate away" event, giving you the "Are you sure?" modal. Not only is this confusing, but if you make any changes to your function while it's in this expired state, there is no way to save them.