Is there a superior alternative I can read up on?
2. Set a session cookie for auth.example.com
3. Redirect to app.example.com/?token=12345
4. Exchange token for a session cookie on app.example.com
This way each (sub)domain will have it's own unique cookie.
My misunderstanding. Yes, what you lay out makes sense.
Not sure how they are actually better than cookies, though. Certainly can be a lot more complex. With cookies you mostly just have to avoid the *.example.com foot gun.
Is there a superior alternative I can read up on?