Flows and Expiry
Return them to where they were going. Somebody follows a link to a protected page, signs in, and should land on that page, not the home page. Carry the destination through the flow and use it. It is a small thing that is noticeably absent when missing.
Handle expiry at one place. A single point that intercepts responses, notices a 401, and reacts: refresh if you can, otherwise clear the credential and send them to sign in with their destination attached.
Scattering that handling through components means one of them will forget, and the symptom is a page that silently shows nothing.
Distinguish 401 from 403. A 401 means sign in. A 403 means you are signed in and still not allowed, and sending that to the sign-in page produces a loop where signing in appears to do nothing.
Mark this lesson complete
Signed in, your progress follows you to every device.