AuthProvider is now defined via partial function.