caching auth types