Null Roles Error Blazor Server App

I’m running into a problem where my Blazor Server ServiceStack app randomly started failing to find user roles in the session, last week. Its being accessed in the service layer.

var session = SessionAs<CustomUserSession>();

I haven’t changing anything in the service layer, and I’ve gone back to older commits just to make sure I didn’t break something else, but the issue persists.

session.Roles is null

What is odd is that the older version of the app currently running in prod doesn’t run into this issue. If I build any version of the app right now and deploy it, the error is the same as in dev.
Even if I rebuild and deploy the same older version of the app currently working in prod, the issue is there.
Which is why I think its something outside of a code change. I’ve made sure the user I’m logged in as has roles. I haven’t updated any dependencies between then.

Any idea what other things might be at play that could be causing this?

No haven’t seen or received any other report like this.