NetCoreIdentityAuthProvider with permanent session

interested in making my ServiceStack session permanent after obtaining it the first time via the NetCoreIdentityAuthProvider.

Would it be appropriate to do something similar to this, but get/create the session in the cache within PopulatesessionFilter instead of a user object.

When you cache User Auth data it becomes stale where the session wont have access to any new changes after its cached, e.g. changes to Roles or other User Info. It’s app specific whether and how long that’s suitable for.