Fix OfflineAuth serializable issue

With a test so that this doesn’t happen again.